pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Eisentraut <peter@eisentraut.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Add support for unit "B" to pg_size_bytes()
Date: Tue, 07 Mar 2023 19:38:31 +0000
Message-ID: <E1pZd8o-002OAo-Vh@gemulon.postgresql.org> (raw)

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(-)



Message-ID: <E1pZd8o-002OAo-Vh@gemulon.postgresql.org>
Permalink:  ../E1pZd8o-002OAo-Vh@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1pZd8o-002OAo-Vh@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: peter@eisentraut.org
  Subject: Re: pgsql: Add support for unit "B" to pg_size_bytes()
  In-Reply-To: <E1pZd8o-002OAo-Vh@gemulon.postgresql.org>
  References: <E1pZd8o-002OAo-Vh@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox