1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-28 23:42:10 +03:00

pg_size_pretty(numeric)

The output of the new pg_xlog_location_diff function is of type numeric,
since it could theoretically overflow an int8 due to signedness; this
provides a convenient way to format such values.

Fujii Masao, with some beautification by me.
This commit is contained in:
Robert Haas
2012-04-14 08:04:11 -04:00
parent d4db16d303
commit 4a2d7ad76f
5 changed files with 150 additions and 2 deletions

View File

@ -14981,7 +14981,20 @@ postgres=# SELECT * FROM pg_xlogfile_name_offset(pg_stop_backup());
<literal><function>pg_size_pretty(<type>bigint</type>)</function></literal>
</entry>
<entry><type>text</type></entry>
<entry>Converts a size in bytes into a human-readable format with size units</entry>
<entry>
Converts a size in bytes expressed as a 64-bit integer into a
human-readable format with size units
</entry>
</row>
<row>
<entry>
<literal><function>pg_size_pretty(<type>numeric</type>)</function></literal>
</entry>
<entry><type>text</type></entry>
<entry>
Converts a size in bytes expressed as a numeric value into a
human-readable format with size units
</entry>
</row>
<row>
<entry>