Skip site navigation (1) Skip section navigation (2)

pgsql: pg_size_pretty(numeric)

From: Robert Haas <rhaas(at)postgresql(dot)org>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: pg_size_pretty(numeric)
Date: 2012-04-14 12:07:57
Message-ID: E1SJ1ll-0007Pl-3f@gemulon.postgresql.org (view raw or flat)
Thread:
Lists: pgsql-committers
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.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/4a2d7ad76f5f275ef2d6a57e1a61d5bf756349e8

Modified Files
--------------
doc/src/sgml/func.sgml           |   15 ++++-
src/backend/utils/adt/dbsize.c   |  132 ++++++++++++++++++++++++++++++++++++++
src/include/catalog/catversion.h |    2 +-
src/include/catalog/pg_proc.h    |    2 +
src/include/utils/builtins.h     |    1 +
5 files changed, 150 insertions(+), 2 deletions(-)

pgsql-committers by date

Next:From: Fujii MasaoDate: 2012-04-14 14:28:39
Subject: Re: [COMMITTERS] pgsql: Add new replication mode synchronous_commit = 'write'.
Previous:From: Tatsuo IshiiDate: 2012-04-14 09:49:56
Subject: pgsql: Add description of long options for '-c', '-D','-l' and '-s'.

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group