Re: Converting postgresql.conf parameters to kilobytes

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Converting postgresql.conf parameters to kilobytes
Дата
Msg-id 24239.1086187562@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Converting postgresql.conf parameters to kilobytes  (Shridhar Daithankar <shridhar@frodo.hserus.net>)
Ответы Re: Converting postgresql.conf parameters to kilobytes  (Shridhar Daithankar <shridhar@frodo.hserus.net>)
Список pgsql-hackers
Shridhar Daithankar <shridhar@frodo.hserus.net> writes:
> Any updates/opinions? Should we convert assign hooks to perform actual 
> assignment and custom validation instead of just custom validation? It is 
> clear from README that it is for validation purposes only..

As it should be.  Assign hooks have no business altering the
user-supplied value.

We do have provisions for letting string assign hooks do that, but the
intended use of this was just for trivial display adjustments like
case-normalizing time zone names.

I remain unalterably opposed to the notion of measuring shared_buffers
in KB, but if you think you can get such a thing in over my objections,
the way to do it is to decouple the GUC parameter from NBuffers.  The
GUC setting is whatever it is; you can reject the value if it's too
far out of range, but you do not editorialize upon it.  What you do is
compute the derived value for NBuffers and assign that in the assign
hook.
        regards, tom lane


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

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: Nested transactions and tuple header info
Следующее
От: Christopher Kings-Lynne
Дата:
Сообщение: Re: ACLs versus ALTER OWNER