Re: custom function for converting human readable sizes to bytes

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: custom function for converting human readable sizes to bytes
Дата
Msg-id 20151123184759.GB4073@alvherre.pgsql
обсуждение исходный текст
Ответ на Re: custom function for converting human readable sizes to bytes  (Pavel Stehule <pavel.stehule@gmail.com>)
Ответы Re: custom function for converting human readable sizes to bytes  (Robert Haas <robertmhaas@gmail.com>)
Re: custom function for converting human readable sizes to bytes  (Pavel Stehule <pavel.stehule@gmail.com>)
Список 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 по дате отправления:

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: Re: Declarative partitioning
Следующее
От: Pavel Stehule
Дата:
Сообщение: problem with msvc linker - cannot build orafce