Re: [PATCH] expand the units that pg_size_pretty supports on output - Mailing list pgsql-hackers

From David Christensen
Subject Re: [PATCH] expand the units that pg_size_pretty supports on output
Date
Msg-id CAOxo6XLov5vJbAvjY04bD-aKG2Yb-NsLfQnZWCLwmBm+XaRHjQ@mail.gmail.com
Whole thread Raw
In response to [PATCH] expand the units that pg_size_pretty supports on output  (David Christensen <david.christensen@crunchydata.com>)
Responses Re: [PATCH] expand the units that pg_size_pretty supports on output  (Asif Rehman <asifr.rehman@gmail.com>)
Re: [PATCH] expand the units that pg_size_pretty supports on output  (David Christensen <david.christensen@crunchydata.com>)
List 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.christensen@crunchydata.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

pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: pg_upgrade fails to detect unsupported arrays and ranges
Next
From: Álvaro Herrera
Date:
Subject: Re: ALTER TABLE .. DETACH PARTITION CONCURRENTLY