diff options
author | Robert Haas <rhaas@postgresql.org> | 2012-04-14 08:04:11 -0400 |
---|---|---|
committer | Robert Haas <rhaas@postgresql.org> | 2012-04-14 08:07:25 -0400 |
commit | 4a2d7ad76f5f275ef2d6a57e1a61d5bf756349e8 (patch) | |
tree | 95875b3c3bf1facfce84e317a863ce8aaf57da81 /src/include/utils/builtins.h | |
parent | d4db16d303b24ba5c9a6ddf8c2d70f6fd2da36d7 (diff) | |
download | postgresql-4a2d7ad76f5f275ef2d6a57e1a61d5bf756349e8.tar.gz postgresql-4a2d7ad76f5f275ef2d6a57e1a61d5bf756349e8.zip |
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.
Diffstat (limited to 'src/include/utils/builtins.h')
-rw-r--r-- | src/include/utils/builtins.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/include/utils/builtins.h b/src/include/utils/builtins.h index 201b23ec9d7..f246f117ba3 100644 --- a/src/include/utils/builtins.h +++ b/src/include/utils/builtins.h @@ -453,6 +453,7 @@ extern Datum pg_database_size_name(PG_FUNCTION_ARGS); extern Datum pg_relation_size(PG_FUNCTION_ARGS); extern Datum pg_total_relation_size(PG_FUNCTION_ARGS); extern Datum pg_size_pretty(PG_FUNCTION_ARGS); +extern Datum pg_size_pretty_numeric(PG_FUNCTION_ARGS); extern Datum pg_table_size(PG_FUNCTION_ARGS); extern Datum pg_indexes_size(PG_FUNCTION_ARGS); extern Datum pg_relation_filenode(PG_FUNCTION_ARGS); |