Re: pgsql: Add pg_size_bytes() to parse human-readable size strings. - Mailing list pgsql-committers

From Michael Paquier
Subject Re: pgsql: Add pg_size_bytes() to parse human-readable size strings.
Date
Msg-id CAB7nPqTRc99KNVcju8BH0NB8RPx8zki7j__S+YCmEir5caRy=A@mail.gmail.com
Whole thread Raw
In response to pgsql: Add pg_size_bytes() to parse human-readable size strings.  (Dean Rasheed <dean.a.rasheed@gmail.com>)
Responses Re: pgsql: Add pg_size_bytes() to parse human-readable size strings.  (Michael Paquier <michael.paquier@gmail.com>)
Re: pgsql: Add pg_size_bytes() to parse human-readable size strings.  (Dean Rasheed <dean.a.rasheed@gmail.com>)
List pgsql-committers
On Sat, Feb 20, 2016 at 7:07 PM, Dean Rasheed <dean.a.rasheed@gmail.com> wrote:
> Add pg_size_bytes() to parse human-readable size strings.
>
> This will parse strings in the format produced by pg_size_pretty() and
> return sizes in bytes. This allows queries to be written with clauses
> like "pg_total_relation_size(oid) > pg_size_bytes('10 GB')".
>
> Author: Pavel Stehule with various improvements by Vitaly Burovoy
> Discussion: http://www.postgresql.org/message-id/CAFj8pRD-tGoDKnxdYgECzA4On01_uRqPrwF-8LdkSE-6bDHp0w@mail.gmail.com
> Reviewed-by: Vitaly Burovoy, Oleksandr Shulgin, Kyotaro Horiguchi,
>     Michael Paquier and Robert Haas

Happy first commit.
--
Michael


pgsql-committers by date:

Previous
From: Dean Rasheed
Date:
Subject: pgsql: Add pg_size_bytes() to parse human-readable size strings.
Next
From: Michael Paquier
Date:
Subject: Re: pgsql: Add pg_size_bytes() to parse human-readable size strings.