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

From Jim Nasby
Subject Re: custom function for converting human readable sizes to bytes
Date
Msg-id 5652233F.30206@BlueTreble.com
Whole thread Raw
In response to Re: custom function for converting human readable sizes to bytes  (Pavel Stehule <pavel.stehule@gmail.com>)
Responses Re: custom function for converting human readable sizes to bytes  (Pavel Stehule <pavel.stehule@gmail.com>)
List pgsql-hackers
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...
-- 
Jim Nasby, Data Architect, Blue Treble Consulting, Austin TX
Experts in Analytics, Data Architecture and PostgreSQL
Data in Trouble? Get it in Treble! http://BlueTreble.com



pgsql-hackers by date:

Previous
From: Jim Nasby
Date:
Subject: Re: count_nulls(VARIADIC "any")
Next
From: Marko Tiikkaja
Date:
Subject: Re: count_nulls(VARIADIC "any")