Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bUIGs-0004U4-Q5 for pgsql-hackers@arkaria.postgresql.org; Mon, 01 Aug 2016 18:49:02 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bUIGs-00046Z-4X for pgsql-hackers@arkaria.postgresql.org; Mon, 01 Aug 2016 18:49:02 +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 1bUIGq-00045d-WE for pgsql-hackers@postgresql.org; Mon, 01 Aug 2016 18:49:01 +0000 Received: from out5-smtp.messagingengine.com ([66.111.4.29]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bUIGn-0007nd-Or for pgsql-hackers@postgresql.org; Mon, 01 Aug 2016 18:49:00 +0000 Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.nyi.internal (Postfix) with ESMTP id 2C1C6205F4; Mon, 1 Aug 2016 14:48:56 -0400 (EDT) Received: from frontend1 ([10.202.2.160]) by compute2.internal (MEProxy); Mon, 01 Aug 2016 14:48:56 -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=mcdvtbtWQkBbjVz JzZvNZsBBiTY=; b=BUI7iXD3IQfg0hGwfKOCasi1mdhKwkSCToZH5Po7IrQKzwc P1eQ83HfGcuqBuJj52+Bdpm83m9OvM/Ku6DLKR5akJFHaJdxIMCxrgJTP4u3wRHa Jqwb/4cd0yFBcV9pbci5oFqslJbaFMkXcSWYclWlsyRBGICiAiGtLWo8RZQI= X-Sasl-enc: jknf3fP/M6pUEUe0Y8WBsvlhu7XNDgz6RZcCjbOYhg8U 1470077335 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 C2CF5F29D8; Mon, 1 Aug 2016 14:48:55 -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: <4d13a986-82f3-3e52-ec69-12e2df2d91ca@2ndquadrant.com> Date: Mon, 1 Aug 2016 14:48:55 -0400 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-Version: 1.0 In-Reply-To: <20160730181643.GD22405@momjian.us> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit 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". If we're going to make changes, why not bite the bullet and output KiB? I have never heard of JEDEC, so I'm less inclined to accept their "standard" at this point. -- 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