Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bjugo-0005IT-Rb for pgsql-hackers@arkaria.postgresql.org; Tue, 13 Sep 2016 20:52:22 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bjugo-0006Sd-Dx for pgsql-hackers@arkaria.postgresql.org; Tue, 13 Sep 2016 20:52:22 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bjugm-0006Om-KJ for pgsql-hackers@postgresql.org; Tue, 13 Sep 2016 20:52:20 +0000 Received: from out4-smtp.messagingengine.com ([66.111.4.28]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bjugj-0001zQ-A0 for pgsql-hackers@postgresql.org; Tue, 13 Sep 2016 20:52:20 +0000 Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.nyi.internal (Postfix) with ESMTP id 7922D20920; Tue, 13 Sep 2016 16:52:15 -0400 (EDT) Received: from frontend2 ([10.202.2.161]) by compute2.internal (MEProxy); Tue, 13 Sep 2016 16:52:15 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-sasl-enc:x-sasl-enc; s=smtpout; bh=4tRy4pAly7FtMHQ IbYMW39k2jY0=; b=g1+s6klIpaZ7DuQQ0XaFqHdB/YmRYXmMZKjpe2QxpxzPGNC qkz8FWC2vx6CFPHznToHyUzketGUk+eZ7N2KYHODe2TpwDZz9X2udiG2wXfpbQL+ srqaw/RYM34H/DptfpsxGJqyFBVzmPdReuLnvMfuWCixN+Pe5I8pKcdU0eTo= X-Sasl-enc: Fv8OiLlFGQkpbbGbYOHYzUWFPNFXOnxGF8av8lT5MYfT 1473799935 Received: from april.local (c-73-13-66-39.hsd1.pa.comcast.net [73.13.66.39]) by mail.messagingengine.com (Postfix) with ESMTPA id F0ABFCCDB8; Tue, 13 Sep 2016 16:52:14 -0400 (EDT) Subject: Re: [BUGS] BUG #14244: wrong suffix for pg_size_pretty() To: Bruce Momjian , Tom Lane References: <20160712133638.1409.99068@wrigleys.postgresql.org> <20160730001838.GA22405@momjian.us> <794.1469889358@sss.pgh.pa.us> <20160730181643.GD22405@momjian.us> Cc: Greg Stark , "David G. Johnston" , thomas.berger@1und1.de, PostgreSQL-development From: Peter Eisentraut Organization: 2ndQuadrant Message-ID: <70e98994-c7d5-6be5-9cc6-cf34eb556183@2ndquadrant.com> Date: Tue, 13 Sep 2016 16:52:14 -0400 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:45.0) Gecko/20100101 Thunderbird/45.3.0 MIME-Version: 1.0 In-Reply-To: <20160730181643.GD22405@momjian.us> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 8bit X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org On 7/30/16 2:16 PM, Bruce Momjian wrote: > The second patch does what Tom suggests above by outputting only "KB", > and it supports "kB" for backward compatibility. What it doesn't do is > to allow arbitrary case, which I think would be a step backward. The > second patch actually does match the JEDEC standard, except for allowing > "kB". Btw., just to show that I'm not all crazy, the following programs also display a small "k" for file sizes and download rates: apt curl dnf pip yum vagrant -- Peter Eisentraut http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers