pgsql: Add support for unit "B" to pg_size_bytes() - Mailing list pgsql-committers

From Peter Eisentraut
Subject pgsql: Add support for unit "B" to pg_size_bytes()
Date
Msg-id E1pZd8o-002OAo-Vh@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
Add support for unit "B" to pg_size_bytes()

This makes it consistent with the units support in GUC.

Reviewed-by: David Rowley <dgrowleyml@gmail.com>
Reviewed-by: Dean Rasheed <dean.a.rasheed@gmail.com>
Discussion: https://www.postgresql.org/message-id/flat/0106914a-9eb5-22be-40d8-652cc88c827d%40enterprisedb.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/ce1215d9b05b524339e31b7bba1f481af8b16fc8

Modified Files
--------------
doc/src/sgml/func.sgml               |  5 ++++-
src/backend/utils/adt/dbsize.c       | 33 +++++++++++++++++++++++++++++----
src/test/regress/expected/dbsize.out | 15 ++++++++-------
src/test/regress/sql/dbsize.sql      |  2 +-
4 files changed, 42 insertions(+), 13 deletions(-)


pgsql-committers by date:

Previous
From: Peter Eisentraut
Date:
Subject: pgsql: doc: Update pg_size_pretty documentation about petabytes support
Next
From: Tom Lane
Date:
Subject: pgsql: Fix more bugs caused by adding columns to the end of a view.