Re: custom function for converting human readable sizes to bytes

Поиск
Список
Период
Сортировка
Искать
От
Alvaro Herrera
Тема
Re: custom function for converting human readable sizes to bytes
Дата
Msg-id
20160104204812.GA215912@alvherre.pgsql
Ответ на
Список
Дерево обсуждения
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 Jim Nasby <Jim.Nasby@BlueTreble.com>
Re: custom function for converting human readable sizes to bytes Marko Tiikkaja <marko@joh.to>
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 Jim Nasby <Jim.Nasby@BlueTreble.com>
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 Guillaume Lelarge <guillaume@lelarge.info>
Re: custom function for converting human readable sizes to bytes Corey Huinker <corey.huinker@gmail.com>
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 Corey Huinker <corey.huinker@gmail.com>
Re: custom function for converting human readable sizes to bytes Jim Nasby <Jim.Nasby@BlueTreble.com>
Re: custom function for converting human readable sizes to bytes Tom Lane <tgl@sss.pgh.pa.us>
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 Alvaro Herrera <alvherre@2ndquadrant.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>
Re: custom function for converting human readable sizes to bytes Jim Nasby <Jim.Nasby@BlueTreble.com>
Re: custom function for converting human readable sizes to bytes Kevin Grittner <kgrittn@gmail.com>
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 Kyotaro HORIGUCHI <horiguchi.kyotaro@lab.ntt.co.jp>
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 Pavel Stehule <pavel.stehule@gmail.com>
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 Michael Paquier <michael.paquier@gmail.com>
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 Michael Paquier <michael.paquier@gmail.com>
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 Pavel Stehule <pavel.stehule@gmail.com>
Re: custom function for converting human readable sizes to bytes "Shulgin, Oleksandr" <oleksandr.shulgin@zalando.de>
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>
Re: custom function for converting human readable sizes to bytes "Shulgin, Oleksandr" <oleksandr.shulgin@zalando.de>
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 "Shulgin, Oleksandr" <oleksandr.shulgin@zalando.de>
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 "Shulgin, Oleksandr" <oleksandr.shulgin@zalando.de>
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 Alvaro Herrera <alvherre@2ndquadrant.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>
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 Pavel Stehule <pavel.stehule@gmail.com>
Re: custom function for converting human readable sizes to bytes "Shulgin, Oleksandr" <oleksandr.shulgin@zalando.de>
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 Vitaly Burovoy <vitaly.burovoy@gmail.com>
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 Vitaly Burovoy <vitaly.burovoy@gmail.com>
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 Vitaly Burovoy <vitaly.burovoy@gmail.com>
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 Pavel Stehule <pavel.stehule@gmail.com>
Re: custom function for converting human readable sizes to bytes Vitaly Burovoy <vitaly.burovoy@gmail.com>
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 Vitaly Burovoy <vitaly.burovoy@gmail.com>
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 Vitaly Burovoy <vitaly.burovoy@gmail.com>
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 Vitaly Burovoy <vitaly.burovoy@gmail.com>
Re: custom function for converting human readable sizes to bytes Tom Lane <tgl@sss.pgh.pa.us>
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 Vitaly Burovoy <vitaly.burovoy@gmail.com>
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 Pavel Stehule <pavel.stehule@gmail.com>
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 Vitaly Burovoy <vitaly.burovoy@gmail.com>
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 Dean Rasheed <dean.a.rasheed@gmail.com>
Re: custom function for converting human readable sizes to bytes Heikki Linnakangas <hlinnaka@iki.fi>
Re: custom function for converting human readable sizes to bytes Dean Rasheed <dean.a.rasheed@gmail.com>
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 Dean Rasheed <dean.a.rasheed@gmail.com>
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 Vitaly Burovoy <vitaly.burovoy@gmail.com>
Re: custom function for converting human readable sizes to bytes Vitaly Burovoy <vitaly.burovoy@gmail.com>
Re: custom function for converting human readable sizes to bytes Vitaly Burovoy <vitaly.burovoy@gmail.com>
Re: custom function for converting human readable sizes to bytes Dean Rasheed <dean.a.rasheed@gmail.com>
Re: custom function for converting human readable sizes to bytes Vitaly Burovoy <vitaly.burovoy@gmail.com>
Re: custom function for converting human readable sizes to bytes Dean Rasheed <dean.a.rasheed@gmail.com>
Re: custom function for converting human readable sizes to bytes Dean Rasheed <dean.a.rasheed@gmail.com>
Re: custom function for converting human readable sizes to bytes Vitaly Burovoy <vitaly.burovoy@gmail.com>
Re: custom function for converting human readable sizes to bytes Vitaly Burovoy <vitaly.burovoy@gmail.com>
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 Vitaly Burovoy <vitaly.burovoy@gmail.com>
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 Vitaly Burovoy <vitaly.burovoy@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>
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 Thom Brown <thom@linux.com>
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 "Shulgin, Oleksandr" <oleksandr.shulgin@zalando.de>
Re: custom function for converting human readable sizes to bytes Gavin Flower <GavinFlower@archidevsys.co.nz>
Robert Haas wrote:

> But you could also write SELECT relname FROM pg_class WHERE
> pg_relation_size(oid) > 100 * 1024^3, which is actually fewer
> characters.  Maybe pg_size_bytes('100 GB') is easier for some people
> to remember than 100 * 1024^3, but I'm probably not one of those
> people.

Nah, that might work for geek types, but I doubt it's the preferred
spelling for most people.  I think the proposal is quite reasonable.

If we were only catering for people who can do 2^10 arithmetic off the
top of their heads, we wouldn't have pg_size_pretty at all, would we?

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


В списке pgsql-hackers по дате отправления
От: Jim Nasby
Дата:
От: Robert Haas
Дата:
FAQ