From: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
To: Pavel Stehule <pavel.stehule@gmail.com>
To: David G. Johnston <david.g.johnston@gmail.com>
Cc: Bruce Momjian <bruce@momjian.us>
Cc: thomas.berger@1und1.de, PostgreSQL-development <pgsql-hackers@postgresql.org>
Subject: Re: [BUGS] BUG #14244: wrong suffix for pg_size_pretty()
Date: Mon, 1 Aug 2016 14:51:03 -0400
Message-ID: <ee912759-e14b-d690-cab3-1c4e0183c313@2ndquadrant.com> (raw)
In-Reply-To: <CAFj8pRDYwgVikNEcE0f7do4W5inhs115si_7JyvfV5M_n6rgcg@mail.gmail.com>
References: <20160712133638.1409.99068@wrigleys.postgresql.org>
<20160730001838.GA22405@momjian.us>
<CAKFQuwabqqy-R76GnaCL+KWOmipC0mio=mFoZqoXqDQSw+YwTg@mail.gmail.com>
<CAFj8pRDYwgVikNEcE0f7do4W5inhs115si_7JyvfV5M_n6rgcg@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>
On 7/30/16 1:18 AM, Pavel Stehule wrote:
> We talked about this issue, when I wrote function pg_size_bytes. It is
> hard to fix these functions after years of usage. The new set of
> functions can be better
>
> pg_iso_size_pretty();
> pg_iso_size_bytes();
One thing that would actually be nice for other reasons as well is a
version of pg_size_pretty() that lets you specify the output unit, say,
as a second argument. Because sometimes you want to compare two tables
or something, and tells you one is 3GB and the other is 783MB, which
doesn't really help. If I tell it to use 'MB' as the output unit, I
could get comparable output.
--
Peter Eisentraut http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
--
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: peter.eisentraut@2ndquadrant.com, pavel.stehule@gmail.com, david.g.johnston@gmail.com, bruce@momjian.us, pgsql-hackers@postgresql.org
Subject: Re: [BUGS] BUG #14244: wrong suffix for pg_size_pretty()
In-Reply-To: <ee912759-e14b-d690-cab3-1c4e0183c313@2ndquadrant.com>
References: <20160712133638.1409.99068@wrigleys.postgresql.org> <20160730001838.GA22405@momjian.us> <CAKFQuwabqqy-R76GnaCL+KWOmipC0mio=mFoZqoXqDQSw+YwTg@mail.gmail.com> <CAFj8pRDYwgVikNEcE0f7do4W5inhs115si_7JyvfV5M_n6rgcg@mail.gmail.com> <ee912759-e14b-d690-cab3-1c4e0183c313@2ndquadrant.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox