[PATCH] expand the units that pg_size_pretty supports on output

From: David Christensen <david(dot)christensen(at)crunchydata(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Subject: [PATCH] expand the units that pg_size_pretty supports on output
Date: 2021-04-14 16:13:47
Message-ID: CAOxo6XKmHc_WZip-x5QwaOqFEiCq_SVD0B7sbTZQk+qqcn2qaw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi folks,

Enclosed is a patch that expands the unit output for
pg_size_pretty(numeric) going up to Yottabytes; I reworked the existing
numeric output code to account for the larger number of units we're using
rather than just adding nesting levels.

There are also a few other places that could benefit from expanded units,
but this is a standalone starting point.

Best,

David

Attachment Content-Type Size
0001-Expand-the-units-that-pg_size_pretty-numeric-knows-a.patch application/octet-stream 8.9 KB

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Honza Horak 2021-04-14 16:21:58 Options given both on cmd-line and in the config with different values
Previous Message James Coleman 2021-04-14 15:36:38 Possible typo/unclear comment in joinpath.c