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

From Alvaro Herrera
Subject Re: custom function for converting human readable sizes to bytes
Date
Msg-id 20151123184759.GB4073@alvherre.pgsql
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
Re: custom function for converting human readable sizes to bytes
List pgsql-hackers
Pavel Stehule wrote:

> so pg_size_bytes is good enough for everybody?

That seems good enough to me.

I would have it accept GiB and GB and have both transform to base 2, and
have an optional boolean flag whose non-default value turns the GB
interpretation into base 10, leaving the GiB interpretation unaffected.

-- 
Álvaro Herrera                http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services



pgsql-hackers by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: Declarative partitioning
Next
From: Pavel Stehule
Date:
Subject: problem with msvc linker - cannot build orafce