From: Tom Lane <tgl@sss.pgh.pa.us>
To: nicola75ss <nicola75ss@gmail.com>
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #5993: pg_size_pretty overflow
Date: Mon, 25 Apr 2011 16:23:17 -0400
Message-ID: <20005.1303762997@sss.pgh.pa.us> (raw)
In-Reply-To: <201104241817.p3OIHoZk039649@wwwmaster.postgresql.org>
References: <201104241817.p3OIHoZk039649@wwwmaster.postgresql.org>
"nicola75ss" <nicola75ss@gmail.com> 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
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, nicola75ss@gmail.com
Subject: Re: BUG #5993: pg_size_pretty overflow
In-Reply-To: <20005.1303762997@sss.pgh.pa.us>
References: <201104241817.p3OIHoZk039649@wwwmaster.postgresql.org> <20005.1303762997@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