Re: custom function for converting human readable sizes to bytes - Mailing list pgsql-hackers

From Marko Tiikkaja
Subject Re: custom function for converting human readable sizes to bytes
Date
Msg-id 56522292.3020205@joh.to
Whole thread Raw
In response to Re: custom function for converting human readable sizes to bytes  (Jim Nasby <Jim.Nasby@BlueTreble.com>)
List pgsql-hackers
On 2015-11-22 18:30, Jim Nasby wrote:
> On 11/21/15 12:49 AM, Pavel Stehule wrote:
>>
>> I propose inversion function to pg_size_pretty function - like
>> pg_human_size.
>>
>> Usage:
>>
>> SELECT * FROM pg_class
>>     WHERE pg_table_size(oid) > pg_human_size('2GB');
>
> I'm not a big fan of the name, but +1 on the general idea.
>
> Maybe pg_size_pretty(text)?

pg_ytterp_ezis(text)



pgsql-hackers by date:

Previous
From: Pavel Stehule
Date:
Subject: Re: custom function for converting human readable sizes to bytes
Next
From: Jim Nasby
Date:
Subject: Re: count_nulls(VARIADIC "any")