Re: custom function for converting human readable sizes to bytes

From: Guillaume Lelarge <guillaume(at)lelarge(dot)info>
To: Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>
Cc: PostgreSQL Developers <pgsql-hackers(at)postgresql(dot)org>, Jim Nasby <Jim(dot)Nasby(at)bluetreble(dot)com>
Subject: Re: custom function for converting human readable sizes to bytes
Date: 2015-11-22 22:43:29
Message-ID: CAECtzeX1e=ZYUO_=7HmQBUBQ6Q+GR48Cng193N38MtAs66jqMg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Le 22 nov. 2015 21:29, "Pavel Stehule" <pavel(dot)stehule(at)gmail(dot)com> a écrit :
>
>
>
> 2015-11-22 21:19 GMT+01:00 Jim Nasby <Jim(dot)Nasby(at)bluetreble(dot)com>:
>>
>> On 11/22/15 2:11 PM, Pavel Stehule wrote:
>>>
>>> What about pg_size(text), pg_size(value bigint, unit text) ?
>>
>>
>> I like, though I'd make it numeric or float. pg_size(3.5, 'GB')
certainly seems like a reasonable use case...
>
>
> yes, good note.
>

What about pg_size_unpretty()?

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Corey Huinker 2015-11-22 22:54:53 Re: custom function for converting human readable sizes to bytes
Previous Message Noah Misch 2015-11-22 22:05:54 Re: more RLS oversights