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

From David Rowley
Subject Re: [PATCH] expand the units that pg_size_pretty supports on output
Date
Msg-id CAApHDvoaoAqjE3usLG-aSe9MJeeM1c4WQvaR3HbeGbCqYbMa7Q@mail.gmail.com
Whole thread Raw
In response to Re: [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  (David Christensen <david.christensen@crunchydata.com>)
List pgsql-hackers
On Wed, 7 Jul 2021 at 02:46, David Christensen
<david.christensen@crunchydata.com> wrote:
> if we do decide to expand the units table there will be a
> few additional changes (most significantly, the return value of `pg_size_bytes()` will need to switch
> to `numeric`).

I wonder if it's worth changing pg_size_bytes() to return NUMERIC
regardless of if we add any additional units or not.

Would you like to create 2 patches, one to change the return type and
another to add the new units, both based on top of the v2 patch I sent
earlier?

David



pgsql-hackers by date:

Previous
From: David Rowley
Date:
Subject: Re: Binary search in ScalarArrayOpExpr for OR'd constant arrays
Next
From: David Rowley
Date:
Subject: Re: ExecRTCheckPerms() and many prunable partitions