Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 2A9F01337BD9 for ; Mon, 25 Apr 2011 17:24:30 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 39638-01-4 for ; Mon, 25 Apr 2011 20:24:23 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by mail.postgresql.org (Postfix) with ESMTP id 543DC1337C5D for ; Mon, 25 Apr 2011 17:23:17 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id p3PKNHHI020006; Mon, 25 Apr 2011 16:23:17 -0400 (EDT) To: "nicola75ss" cc: pgsql-bugs@postgresql.org Subject: Re: BUG #5993: pg_size_pretty overflow In-reply-to: <201104241817.p3OIHoZk039649@wwwmaster.postgresql.org> References: <201104241817.p3OIHoZk039649@wwwmaster.postgresql.org> Comments: In-reply-to "nicola75ss" message dated "Sun, 24 Apr 2011 18:17:50 +0000" Date: Mon, 25 Apr 2011 16:23:17 -0400 Message-ID: <20005.1303762997@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-5 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201104/193 X-Sequence-Number: 30112 "nicola75ss" writes: > Good morning. I'm totally newbie with postgresql. I was studying > pg_size_pretty() and I've discovered that if I pass it a great value it > returns negative value. > This is an example > select pg_size_pretty(9223372000000000000); -- "-8388607 TB" Yeah, that's a bug. Fixed, thanks for the report! regards, tom lane