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

From: Michael Paquier <michael(dot)paquier(at)gmail(dot)com>
To: Dean Rasheed <dean(dot)a(dot)rasheed(at)gmail(dot)com>
Cc: pgsql-committers(at)postgresql(dot)org
Subject: Re: pgsql: Add pg_size_bytes() to parse human-readable size strings.
Date: 2016-02-20 10:16:07
Message-ID: CAB7nPqTyizP-=wHkDp9AMNwoJ=XW0W8_=U=b_yCm1s6NbpEbrw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

On Sat, Feb 20, 2016 at 7:12 PM, Michael Paquier
<michael(dot)paquier(at)gmail(dot)com> wrote:
> On Sat, Feb 20, 2016 at 7:07 PM, Dean Rasheed <dean(dot)a(dot)rasheed(at)gmail(dot)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.

And happy first buildfarm breakage :)
http://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=termite&dt=2016-02-20%2010%3A10%3A07
--
Michael

In response to

Browse pgsql-committers by date

  From Date Subject
Next Message Dean Rasheed 2016-02-20 10:17:16 Re: pgsql: Add pg_size_bytes() to parse human-readable size strings.
Previous Message Michael Paquier 2016-02-20 10:12:37 Re: pgsql: Add pg_size_bytes() to parse human-readable size strings.