Re: GUC with units, details

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: GUC with units, details
Дата
Msg-id 24801.1153865066@sss.pgh.pa.us
обсуждение исходный текст
Ответ на GUC with units, details  (Peter Eisentraut <peter_e@gmx.net>)
Ответы Re: GUC with units, details  (Peter Eisentraut <peter_e@gmx.net>)
Список pgsql-hackers
Peter Eisentraut <peter_e@gmx.net> writes:
> Output from SHOW uses the largest unit that fits as long as the number 
> is an integer.

That seems OK for SHOW, which is mainly intended for human consumption,
but what will you do with pg_settings?  For programmatic use I think
we want more predictable behavior.

I'm inclined to suggest adding a column "native units" to pg_settings,
which shows what the underlying units are (ie, the existing
interpretations) and then always show the value of a given variable
in its native unit.
        regards, tom lane


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: GUC with units, details
Следующее
От: Michael Glaesemann
Дата:
Сообщение: Re: GUC with units, details