From: | Peter Eisentraut <peter(at)eisentraut(dot)org> |
---|---|
To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
Subject: | pgsql: Add support for unit "B" to pg_size_bytes() |
Date: | 2023-03-07 19:38:31 |
Message-ID: | E1pZd8o-002OAo-Vh@gemulon.postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | 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(at)gmail(dot)com>
Reviewed-by: Dean Rasheed <dean(dot)a(dot)rasheed(at)gmail(dot)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(-)
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2023-03-07 23:22:19 | pgsql: Fix more bugs caused by adding columns to the end of a view. |
Previous Message | Peter Eisentraut | 2023-03-07 19:02:10 | pgsql: doc: Update pg_size_pretty documentation about petabytes support |