pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Joshua D. Drake <jd@commandprompt.com>
To: Bruce Momjian <bruce@momjian.us>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Greg Stark <stark@mit.edu>
Cc: David G. Johnston <david.g.johnston@gmail.com>
Cc: thomas.berger@1und1.de, PostgreSQL-development <pgsql-hackers@postgresql.org>
Subject: Re: [BUGS] BUG #14244: wrong suffix for pg_size_pretty()
Date: Sat, 30 Jul 2016 22:17:17 -0700
Message-ID: <aaae773d-0add-186a-a37b-70f103ab153a@commandprompt.com> (raw)
In-Reply-To: <20160730181643.GD22405@momjian.us>
References: <20160712133638.1409.99068@wrigleys.postgresql.org>
	<20160730001838.GA22405@momjian.us>
	<CAKFQuwabqqy-R76GnaCL+KWOmipC0mio=mFoZqoXqDQSw+YwTg@mail.gmail.com>
	<CAM-w4HNRZmna6BFRQYDmXV_nH26YAJD-5m2yLHQWrRh08yb9hg@mail.gmail.com>
	<794.1469889358@sss.pgh.pa.us>
	<20160730181643.GD22405@momjian.us>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>

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 <stark@mit.edu> 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



view thread (31+ messages)  latest in thread

Message-ID: <aaae773d-0add-186a-a37b-70f103ab153a@commandprompt.com>
Permalink:  ../aaae773d-0add-186a-a37b-70f103ab153a@commandprompt.com/
Also on:    postgresql.org/message-id/aaae773d-0add-186a-a37b-70f103ab153a@commandprompt.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: jd@commandprompt.com, bruce@momjian.us, tgl@sss.pgh.pa.us, stark@mit.edu, david.g.johnston@gmail.com, pgsql-hackers@postgresql.org
  Subject: Re: [BUGS] BUG #14244: wrong suffix for pg_size_pretty()
  In-Reply-To: <aaae773d-0add-186a-a37b-70f103ab153a@commandprompt.com>
  References: <20160712133638.1409.99068@wrigleys.postgresql.org> <20160730001838.GA22405@momjian.us> <CAKFQuwabqqy-R76GnaCL+KWOmipC0mio=mFoZqoXqDQSw+YwTg@mail.gmail.com> <CAM-w4HNRZmna6BFRQYDmXV_nH26YAJD-5m2yLHQWrRh08yb9hg@mail.gmail.com> <794.1469889358@sss.pgh.pa.us> <20160730181643.GD22405@momjian.us> <aaae773d-0add-186a-a37b-70f103ab153a@commandprompt.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox