pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: David Rowley <drowley@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Teach pg_size_pretty and pg_size_bytes about petabytes
Date: Fri, 09 Jul 2021 06:56:37 +0000
Message-ID: <E1m1kRB-0004xl-KZ@gemulon.postgresql.org> (raw)

Teach pg_size_pretty and pg_size_bytes about petabytes

There was talk about adding units all the way up to yottabytes but it
seems quite far-fetched that anyone would need those.  Since such large
units are not exactly commonplace, it seems unlikely that having
pg_size_pretty outputting unit any larger than petabytes would actually be
helpful to anyone.

Since petabytes are on the horizon, let's just add those only.  Maybe one
day we'll get to add additional units, but it will likely be a while
before we'll need to think beyond petabytes in regards to the size of a
database.

Author: David Christensen
Discussion: https://postgr.es/m/CAOxo6XKmHc_WZip-x5QwaOqFEiCq_SVD0B7sbTZQk+qqcn2qaw@mail.gmail.com

Branch
------
master

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

Modified Files
--------------
src/backend/utils/adt/dbsize.c       |   3 +-
src/test/regress/expected/dbsize.out | 124 ++++++++++++++++++-----------------
src/test/regress/sql/dbsize.sql      |   9 +--
3 files changed, 72 insertions(+), 64 deletions(-)



Message-ID: <E1m1kRB-0004xl-KZ@gemulon.postgresql.org>
Permalink:  ../E1m1kRB-0004xl-KZ@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1m1kRB-0004xl-KZ@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: drowley@postgresql.org
  Subject: Re: pgsql: Teach pg_size_pretty and pg_size_bytes about petabytes
  In-Reply-To: <E1m1kRB-0004xl-KZ@gemulon.postgresql.org>
  References: <E1m1kRB-0004xl-KZ@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