Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bTj9H-0000SV-AW for pgsql-hackers@arkaria.postgresql.org; Sun, 31 Jul 2016 05:18:51 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bTj9G-0000GK-8v for pgsql-hackers@arkaria.postgresql.org; Sun, 31 Jul 2016 05:18:50 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bTj7t-0007CN-4w for pgsql-hackers@postgresql.org; Sun, 31 Jul 2016 05:17:25 +0000 Received: from lists.commandprompt.com ([69.168.55.30]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bTj7p-00017j-3r for pgsql-hackers@postgresql.org; Sun, 31 Jul 2016 05:17:23 +0000 Received: from [192.168.1.61] (spinlock.commandprompt.com [69.168.55.30]) by lists.commandprompt.com (Postfix) with ESMTPA id 87ED242B; Sat, 30 Jul 2016 22:17:18 -0700 (PDT) Received: from c-73-225-27-179.hsd1.wa.comcast.net ([73.225.27.179] helo=[192.168.1.61]) by assp.commandprompt.com with SMTPSA(TLSv1_2 ECDHE-RSA-AES128-GCM-SHA256) (2.5.1); 30 Jul 2016 22:17:18 -0700 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: "Joshua D. Drake" Organization: Command Prompt, Inc. Message-ID: Date: Sat, 30 Jul 2016 22:17:17 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; 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; format=flowed Content-Transfer-Encoding: 7bit X-Assp-Version: 2.5.1(16177) on assp.commandprompt.com X-Assp-ID: assp.commandprompt.com m1-42238-02510 X-Assp-Session: 7FBC08685D90 (mail 1) X-Assp-Original-Subject: Re: [HACKERS] [BUGS] BUG #14244: wrong suffix for pg_size_pretty() X-Assp-Client-SSL: yes X-Pg-Spam-Score: -3.2 (---) 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 07/30/2016 11:16 AM, Bruce Momjian wrote: > On Sat, Jul 30, 2016 at 10:35:58AM -0400, Tom Lane wrote: >> Greg Stark writes: > I agree that a GUC and new functions are overkill --- we should just > decide on the format we want to output and what to support for input. > > As logical as the IEC format appears, I just don't think the Ki/Mi/Gi > prefixes are used widely enough for us to use it --- I think it will > cause too many problem reports: > > https://en.wikipedia.org/wiki/Binary_prefix > > I have developed two possible patches for PG 10 --- the first one merely > allows "KB" to be used in addition to the existing "kB", and documents > this as an option. > > 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". > > I also just applied a doc patch that increases case and spacing > consistency in the use of kB/MB/GB/TB. > +1 -- Command Prompt, Inc. http://the.postgres.company/ +1-503-667-4564 PostgreSQL Centered full stack support, consulting and development. Everyone appreciates your honesty, until you are honest with them. -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers