Re: custom function for converting human readable sizes to bytes

Поиск
Список
Период
Сортировка
От Marko Tiikkaja
Тема Re: custom function for converting human readable sizes to bytes
Дата
Msg-id 56522292.3020205@joh.to
обсуждение исходный текст
Ответ на Re: custom function for converting human readable sizes to bytes  (Jim Nasby <Jim.Nasby@BlueTreble.com>)
Список 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 по дате отправления:

Предыдущее
От: Pavel Stehule
Дата:
Сообщение: Re: custom function for converting human readable sizes to bytes
Следующее
От: Jim Nasby
Дата:
Сообщение: Re: count_nulls(VARIADIC "any")