Re: catalog access with reset GUCs during parallel worker startup

Поиск
Список
Период
Сортировка
От Robert Haas
Тема Re: catalog access with reset GUCs during parallel worker startup
Дата
Msg-id CA+TgmoavOVOOncezNvWW+CH6HeWAMj+GHr5F_13=KBKzvSsAdQ@mail.gmail.com
обсуждение исходный текст
Ответ на Re: catalog access with reset GUCs during parallel worker startup  (Andres Freund <andres@anarazel.de>)
Ответы Re: catalog access with reset GUCs during parallel worker startup  (Andres Freund <andres@anarazel.de>)
Список pgsql-hackers
On Wed, Feb 9, 2022 at 7:33 PM Andres Freund <andres@anarazel.de> wrote:
> > Can we arrange to absorb the leader's values before starting the
> > worker's transaction, instead of inside it?
>
> I assume Robert did it this way for a reason? It'd not be surprising if there
> were a bunch of extensions assuming its safe to do catalog accesses if
> IsUnderPostmaster or such :(

I remember trying that, and if I remember correctly, it broke with
core GUCs, without any need for extensions in the picture. I don't
remember the details too well, unfortunately, but I think it had to do
with the behavior of some of the check and/or assign hooks.

It's probably time to try it again, because (a) maybe things are
different now, or (b) maybe I did it wrong, and in any event (c) I
can't really remember why it didn't work and we probably want to know
that.

-- 
Robert Haas
EDB: http://www.enterprisedb.com



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

Предыдущее
От: Michael Paquier
Дата:
Сообщение: Re: Logging in LockBufferForCleanup()
Следующее
От: Julien Rouhaud
Дата:
Сообщение: Re: Database-level collation version tracking