From: Tom Lane <tgl@sss.pgh.pa.us>
To: Robert Haas <robertmhaas@gmail.com>
Cc: Thomas Berger <Thomas.Berger@1und1.de>
Cc: PostgreSQL-development <pgsql-hackers@postgresql.org>
Subject: Re: [BUGS] BUG #14244: wrong suffix for pg_size_pretty()
Date: Wed, 14 Sep 2016 11:54:45 -0400
Message-ID: <9719.1473868485@sss.pgh.pa.us> (raw)
In-Reply-To: <CA+TgmoYmCcOGzo5y3T7__A+EhbxD0hXfWAK8K-9zvFjkEOBfzA@mail.gmail.com>
References: <20160712133638.1409.99068@wrigleys.postgresql.org>
<20160730001838.GA22405@momjian.us>
<CA+TgmoY1KS_2CsJ9R+TKq_HuR-rdMYmtmDvX7FVd9e5GsX8hyw@mail.gmail.com>
<1720794.74oZBILyAs@lxka-3p3kp32>
<CA+TgmoYmCcOGzo5y3T7__A+EhbxD0hXfWAK8K-9zvFjkEOBfzA@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>
Robert Haas <robertmhaas@gmail.com> writes:
> Interesting. I think that our documentation should only describe the
> way we use unit suffixes in one central place, but other places (like
> pg_size_pretty) could link to that central place.
> I don't believe that there is any general unanimity among users or
> developers about the question of which suffixes devote units
> denominated in units of 2^10 bytes vs. 10^3 bytes. About once a year,
> somebody makes an argument that we're doing it wrong, but the evidence
> that I've seen is very mixed. So when people say that there is only
> one right way to do this and we are not in compliance with that one
> right way, I guess I just don't believe it. Not everybody likes the
> way we do it, but I am fairly sure that if we change it, we'll make
> some currently-unhappy people happy and some currently-happy people
> unhappy. And the people who don't care but wanted to preserve
> backward compatibility will all be in the latter camp.
That's about my position too: I cannot see that changing this is going
to make things better to a degree that would justify breaking backwards
compatibility.
> However, that is not to say that the documentation couldn't be better.
+1; your idea above seems sound.
regards, tom lane
--
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers
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: tgl@sss.pgh.pa.us, robertmhaas@gmail.com, Thomas.Berger@1und1.de, pgsql-hackers@postgresql.org
Subject: Re: [BUGS] BUG #14244: wrong suffix for pg_size_pretty()
In-Reply-To: <9719.1473868485@sss.pgh.pa.us>
References: <20160712133638.1409.99068@wrigleys.postgresql.org> <20160730001838.GA22405@momjian.us> <CA+TgmoY1KS_2CsJ9R+TKq_HuR-rdMYmtmDvX7FVd9e5GsX8hyw@mail.gmail.com> <1720794.74oZBILyAs@lxka-3p3kp32> <CA+TgmoYmCcOGzo5y3T7__A+EhbxD0hXfWAK8K-9zvFjkEOBfzA@mail.gmail.com> <9719.1473868485@sss.pgh.pa.us>
* 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