BUG #12989: pg_size_pretty with negative values

From: cbalmeida(at)gmail(dot)com
To: pgsql-bugs(at)postgresql(dot)org
Subject: BUG #12989: pg_size_pretty with negative values
Date: 2015-04-06 17:30:26
Message-ID: 20150406173026.2550.39773@wrigleys.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs pgsql-hackers

The following bug has been logged on the website:

Bug reference: 12989
Logged by: Christian Almeida
Email address: cbalmeida(at)gmail(dot)com
PostgreSQL version: 9.3.6
Operating system: Ubuntu 14.04 LTS
Description:

The function "pg_size_pretty" is not formatting negative numbers.

Example:
select pg_size_pretty(+123456789::bigint),
pg_size_pretty(-123456789::bigint)

Output:
----------------------------
118 MB -123456789 bytes

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message David G. Johnston 2015-04-06 17:45:41 Re: BUG #12989: pg_size_pretty with negative values
Previous Message Peter Slavov 2015-04-06 14:55:44 Re: BUG #12910: Memory leak with logical decoding

Browse pgsql-hackers by date

  From Date Subject
Next Message Jim Nasby 2015-04-06 17:31:56 Re: Freeze avoidance of very large table.
Previous Message ktm@rice.edu 2015-04-06 17:29:51 Re: Freeze avoidance of very large table.