"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