Re: BUG #5993: pg_size_pretty overflow

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "nicola75ss" <nicola75ss(at)gmail(dot)com>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #5993: pg_size_pretty overflow
Date: 2011-04-25 20:23:17
Message-ID: 20005.1303762997@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

"nicola75ss" <nicola75ss(at)gmail(dot)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

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Dave Page 2011-04-26 08:59:07 Re: BUG #5800: "corrupted" error messages (encoding problem ?)
Previous Message Robert Haas 2011-04-25 19:57:17 Re: [BUGS] [JDBC] Missing documentation for error code: 80S01