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: 0106914a-9eb5-22be-40d8-652cc88c827d@enterprisedb.com
Views: Raw Message | Whole Thread | 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