From: | David Christensen <david(dot)christensen(at)crunchydata(dot)com> |
---|---|
To: | PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: [PATCH] expand the units that pg_size_pretty supports on output |
Date: | 2021-04-28 15:44:11 |
Message-ID: | CAOxo6XLov5vJbAvjY04bD-aKG2Yb-NsLfQnZWCLwmBm+XaRHjQ@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
A second patch to teach the same units to pg_size_bytes().
Best,
David
On Wed, Apr 14, 2021 at 11:13 AM David Christensen <
david(dot)christensen(at)crunchydata(dot)com> wrote:
> 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-supported-units-in-pg_size_bytes-to-cover.patch | application/octet-stream | 12.6 KB |
From | Date | Subject | |
---|---|---|---|
Next Message | Álvaro Herrera | 2021-04-28 16:11:12 | Re: ALTER TABLE .. DETACH PARTITION CONCURRENTLY |
Previous Message | Tom Lane | 2021-04-28 15:09:15 | Re: pg_upgrade fails to detect unsupported arrays and ranges |