Re: GUC with units, details

Поиск
Список
Период
Сортировка
Искать
От
Thomas Hallgren
Тема
Re: GUC with units, details
Дата
Msg-id
44C72437.6070403@tada.se
Ответ на
Список
Дерево обсуждения
GUC with units, details Peter Eisentraut <peter_e@gmx.net>
Re: GUC with units, details Tom Lane <tgl@sss.pgh.pa.us>
Re: GUC with units, details Peter Eisentraut <peter_e@gmx.net>
Re: GUC with units, details Tom Lane <tgl@sss.pgh.pa.us>
Re: GUC with units, details Michael Glaesemann <grzm@seespotcode.net>
Re: GUC with units, details Michael Glaesemann <grzm@seespotcode.net>
Re: GUC with units, details "Bort, Paul" <pbort@tmwsystems.com>
Re: GUC with units, details Peter Eisentraut <peter_e@gmx.net>
Re: GUC with units, details Tom Lane <tgl@sss.pgh.pa.us>
Re: GUC with units, details Neil Conway <neilc@samurai.com>
Re: GUC with units, details Peter Eisentraut <peter_e@gmx.net>
Re: GUC with units, details Simon Riggs <simon@2ndquadrant.com>
Re: GUC with units, details Peter Eisentraut <peter_e@gmx.net>
Re: GUC with units, details Thomas Hallgren <thomas@tada.se>
Re: GUC with units, details "Bort, Paul" <pbort@tmwsystems.com>
Re: GUC with units, details Peter Eisentraut <peter_e@gmx.net>
Re: GUC with units, details Andreas Pflug <pgadmin@pse-consulting.de>
Re: GUC with units, details "Bort, Paul" <pbort@tmwsystems.com>
Re: GUC with units, details Peter Eisentraut <peter_e@gmx.net>
Re: GUC with units, details "Bort, Paul" <pbort@tmwsystems.com>
Re: GUC with units, details Alvaro Herrera <alvherre@commandprompt.com>
Re: GUC with units, details Jim Nasby <jnasby@pervasive.com>
Re: GUC with units, details Csaba Nagy <nagy@ecircle-ag.com>
Re: GUC with units, details Tom Lane <tgl@sss.pgh.pa.us>
Re: GUC with units, details Peter Eisentraut <peter_e@gmx.net>
Re: GUC with units, details Tom Lane <tgl@sss.pgh.pa.us>
Re: GUC with units, details Peter Eisentraut <peter_e@gmx.net>
Re: GUC with units, details Tom Lane <tgl@sss.pgh.pa.us>
Re: GUC with units, details "Jim C. Nasby" <jnasby@pervasive.com>
Re: GUC with units, details Peter Eisentraut <peter_e@gmx.net>
Re: GUC with units, details Tom Lane <tgl@sss.pgh.pa.us>
Re: GUC with units, details Martijn van Oosterhout <kleptog@svana.org>
Re: GUC with units, details Gregory Stark <gsstark@mit.edu>
Re: GUC with units, details Ron Mayer <rm_pg@cheapcomplexdevices.com>
Re: GUC with units, details "Bort, Paul" <pbort@tmwsystems.com>
Re: GUC with units, details Peter Eisentraut <peter_e@gmx.net>
Re: GUC with units, details "Bort, Paul" <pbort@tmwsystems.com>
Re: GUC with units, details Martijn van Oosterhout <kleptog@svana.org>
Re: GUC with units, details "Bort, Paul" <pbort@tmwsystems.com>
Re: GUC with units, details Michael Glaesemann <grzm@seespotcode.net>
Re: GUC with units, details Tom Lane <tgl@sss.pgh.pa.us>
Re: GUC with units, details Hannu Krosing <hannu@skype.net>
Re: GUC with units, details Peter Eisentraut <peter_e@gmx.net>
Re: GUC with units, details Tom Lane <tgl@sss.pgh.pa.us>
Re: GUC with units, details "Florian G. Pflug" <fgp@phlo.org>
Re: GUC with units, details Peter Eisentraut <peter_e@gmx.net>
Re: GUC with units, details Csaba Nagy <nagy@ecircle-ag.com>
Re: GUC with units, details "Florian G. Pflug" <fgp@phlo.org>
Re: GUC with units, details Michael Glaesemann <grzm@seespotcode.net>
Simon Riggs wrote:
> don't ever need to say that K = 1000, AFAICS. I think we are safe to
> assume that 
> 
> 	kB = KB = kb = Kb = 1024 bytes
> 
> 	mB = MB = mb = Mb = 1024 * 1024 bytes
> 
> 	gB = GB = gb = Gb = 1024 * 1024 * 1024 bytes
> 
> There's no value in forcing the use of specific case and it will be just
> confusing for people.
> 
It's fairly common to use 'b' for 'bits' and 'B' for 'bytes'. My suggestion would be to be 
much more restrictive and avoid small caps:

KB = 1024 bytes
MB = 1024 KB
GB = 1024 KB
TB = 1024 GB

Although I don't expect to see bit-rates or fractions ('m' == 'milli') in GUC, it might be 
good to use consistent units everywhere.

Regards,
Thomas Hallgren

В списке pgsql-hackers по дате отправления
От: Simon Riggs
Дата:
Сообщение: Re: GUC with units, details
От: Joachim Wieland
Дата:
FAQ