Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bkCWV-0001dE-04 for pgsql-hackers@arkaria.postgresql.org; Wed, 14 Sep 2016 15:54:55 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bkCWU-0005vQ-Iz for pgsql-hackers@arkaria.postgresql.org; Wed, 14 Sep 2016 15:54:54 +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 1bkCWT-0005uh-FO for pgsql-hackers@postgresql.org; Wed, 14 Sep 2016 15:54:53 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bkCWQ-0001gI-5w for pgsql-hackers@postgresql.org; Wed, 14 Sep 2016 15:54:52 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id u8EFsjx2009720; Wed, 14 Sep 2016 11:54:45 -0400 From: Tom Lane To: Robert Haas cc: Thomas Berger , PostgreSQL-development Subject: Re: [BUGS] BUG #14244: wrong suffix for pg_size_pretty() In-reply-to: References: <20160712133638.1409.99068@wrigleys.postgresql.org> <20160730001838.GA22405@momjian.us> <1720794.74oZBILyAs@lxka-3p3kp32> Comments: In-reply-to Robert Haas message dated "Wed, 14 Sep 2016 11:45:59 -0400" Date: Wed, 14 Sep 2016 11:54:45 -0400 Message-ID: <9719.1473868485@sss.pgh.pa.us> X-Pg-Spam-Score: -4.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 Robert Haas 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