Re: warn if GUC set to an invalid shared library

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: warn if GUC set to an invalid shared library
Дата
Msg-id 729940.1658516423@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: warn if GUC set to an invalid shared library  (Robert Haas <robertmhaas@gmail.com>)
Ответы Re: warn if GUC set to an invalid shared library  (Justin Pryzby <pryzby@telsasoft.com>)
Список pgsql-hackers
Justin Pryzby <pryzby@telsasoft.com> writes:
> On Fri, Jul 22, 2022 at 01:53:21PM -0400, Tom Lane wrote:
>> This indicates that the warning is being issued in the wrong place.
>> It's okay if it comes out during ALTER SYSTEM.  It's not okay if it
>> comes out during server start; then it's just an annoyance.

> The previous patch version checked if (!IsUnderPostmaster()) before warning.
> Is there a better way ?

> ALTER SYSTEM uses PGC_S_FILE, the same as during startup..

Shouldn't you be doing this when the source is PGC_S_TEST, instead?
That's pretty much what it's for.  See check_default_table_access_method
and other examples.

            regards, tom lane



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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Unprivileged user can induce crash by using an SUSET param in PGOPTIONS
Следующее
От: Justin Pryzby
Дата:
Сообщение: Re: warn if GUC set to an invalid shared library