Add support for unit "B" to pg_size_pretty()

From: Peter Eisentraut <peter(dot)eisentraut(at)enterprisedb(dot)com>
To: pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Add support for unit "B" to pg_size_pretty()
Date: 2023-02-20 06:44:15
Message-ID: [email protected]
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

This patch adds support for the unit "B" to pg_size_pretty(). This
makes it consistent with the units support in GUC. (pg_size_pretty()
only supports "bytes", but GUC only supports "B". -- I opted against
adding support for "bytes" to GUC.)

Attachment Content-Type Size
0001-Add-support-for-unit-B-to-pg_size_pretty.patch text/plain 5.4 KB

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Julien Rouhaud 2023-02-20 07:07:37 Re: pg_upgrade and logical replication
Previous Message Hayato Kuroda (Fujitsu) 2023-02-20 06:43:29 RE: [Proposal] Add foreign-server health checks infrastructure