Re: Custom PGC_POSTMASTER GUC variables ... feasible?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Custom PGC_POSTMASTER GUC variables ... feasible?
Дата
Msg-id 20618.1523371986@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Custom PGC_POSTMASTER GUC variables ... feasible?  (Jim Finnerty <jfinnert@amazon.com>)
Список pgsql-hackers
Jim Finnerty <jfinnert@amazon.com> writes:
> What were the possible failure scenarios that throwing a fatal error was
> intended to avoid, i.e. what sort of "hooking into" is the comment below
> referring to that was regarded as a fate worse than death?

The point is that if the extension is marking the variable as
PGC_POSTMASTER, it's presumably relying on that variable having the same
value in every process.  It might be using it as the size of an array in
shared memory, say.  If some processes have a different value, that could
end in a memory stomp, or some other crash that's substantially less clean
than a FATAL exit.

            regards, tom lane


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

Предыдущее
От: Nikhil Sontakke
Дата:
Сообщение: Re: [HACKERS] logical decoding of two-phase transactions
Следующее
От: Alexander Korotkov
Дата:
Сообщение: Re: Partitioned tables and covering indexes