Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bk6Op-0007N7-QI for pgsql-hackers@arkaria.postgresql.org; Wed, 14 Sep 2016 09:22:35 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bk6Oo-0006VU-Jr for pgsql-hackers@arkaria.postgresql.org; Wed, 14 Sep 2016 09:22:34 +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 1bk6On-0006VN-RL for pgsql-hackers@postgresql.org; Wed, 14 Sep 2016 09:22:33 +0000 Received: from moint.1and1.com ([212.227.15.7]) by makus.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.84_2) (envelope-from ) id 1bk6Og-0002kg-K6 for pgsql-hackers@postgresql.org; Wed, 14 Sep 2016 09:22:32 +0000 Received: from [172.19.76.178] (helo=BAPPEX007-MBX.webde.local) by mrint.1and1.com with esmtps (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1bk6Oe-0002RD-26 for pgsql-hackers@postgresql.org; Wed, 14 Sep 2016 11:22:24 +0200 Received: from BAPPEX004-MBX.webde.local (172.19.76.186) by BAPPEX007-MBX.webde.local (172.19.76.178) with Microsoft SMTP Server (TLS) id 15.0.1178.4; Wed, 14 Sep 2016 11:22:23 +0200 Received: from BAPPEX004-MBX.webde.local ([fe80::a8d4:7e2f:ac1:9ba1]) by BAPPEX004-MBX.webde.local ([fe80::a8d4:7e2f:ac1:9ba1%15]) with mapi id 15.00.1178.000; Wed, 14 Sep 2016 11:22:23 +0200 From: Thomas Berger To: PostgreSQL-development Subject: Re: [BUGS] BUG #14244: wrong suffix for pg_size_pretty() Thread-Topic: [HACKERS] [BUGS] BUG #14244: wrong suffix for pg_size_pretty() Thread-Index: AQHR6fftRKuOoCh9Z069h/cizEfTHqBW0p6AgCIK6gA= Date: Wed, 14 Sep 2016 09:22:22 +0000 Message-ID: <1720794.74oZBILyAs@lxka-3p3kp32> References: <20160712133638.1409.99068@wrigleys.postgresql.org> <20160730001838.GA22405@momjian.us> In-Reply-To: Accept-Language: de-DE, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-messagesentrepresentingtype: 1 x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [172.19.70.210] Content-Type: text/plain; charset="iso-8859-1" Content-ID: Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Virus-Scanned: ClamAV@mvs-ha-bs X-Pg-Spam-Score: -1.9 (-) 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 Today, i found the time to read all the mails in this thread, and i think i= have to explain, why we decided to open a bug for this behavior. Pn Tuesday, 23. August 2016, 13:30:29 Robert Haas wrote: > J. Random User: I'm having a problem! > Mailing List: Gee, how big are your tables? > J. Random User: Here's some pg_size_pretty output. > Mailing List: Gosh, we don't know what that means, what do you have > this obscure GUC set to? > J. Random User: Maybe I'll just give up on SQL and use MongoDB. In fact, we had just the other way around. One of our most critical databas= es had some extreme bloat. Some of our internal customers was very confused, about the sizes reported = by the database. This confusion has led to wrong decisions. (And a long discussion about the= choice of DBMS btw) I think there is a point missing in this whole discussion, or i just didn't= see it: Yeah, the behavior of "kB" is defined in the "postgresql.conf" documentatio= n. But no _user_ reads this. There is no link or hint in the documentation of = "pg_size_pretty()" [1]. [1] https://www.postgresql.org/docs/9.5/static/functions-admin.html#FUNCTIO= NS-ADMIN-DBSIZE --=20 Thomas Berger PostgreSQL DBA Database Operations 1&1 Telecommunication SE | Ernst-Frey-Stra=DFe 10 | 76135 Karlsruhe | Germa= ny Phone: +49 721 91374-6566 E-Mail: thomas.berger@1und1.de | Web: www.1und1.de Hauptsitz Montabaur, Amtsgericht Montabaur, HRB 23963 Vorstand: Markus Huhn, Alessandro Nava, Moritz Roth, Ludger Sieverding, Mar= tin Witt Aufsichtsratsvorsitzender: Michael Scheeren Member of United Internet Diese E-Mail kann vertrauliche und/oder gesetzlich gesch=FCtzte Information= en enthalten. Wenn Sie nicht der bestimmungsgem=E4=DFe Adressat sind oder d= iese E-Mail irrt=FCmlich erhalten haben, unterrichten Sie bitte den Absende= r und vernichten Sie diese E-Mail. Anderen als dem bestimmungsgem=E4=DFen A= dressaten ist untersagt, diese E-Mail zu speichern, weiterzuleiten oder ihr= en Inhalt auf welche Weise auch immer zu verwenden. This e-mail may contain confidential and/or privileged information. If you = are not the intended recipient of this e-mail, you are hereby notified that= saving, distribution or use of the content of this e-mail in any way is pr= ohibited. If you have received this e-mail in error, please notify the send= er and delete the e-mail. --=20 Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers