Re: Online checksums patch - once again
От | Magnus Hagander |
---|---|
Тема | Re: Online checksums patch - once again |
Дата | |
Msg-id | CABUevExdR6pi6hTF+M2BH-4vi4x5k0QzA=HPf0H-xWAh7CW1Pg@mail.gmail.com обсуждение исходный текст |
Ответ на | Re: Online checksums patch - once again (Heikki Linnakangas <hlinnaka@iki.fi>) |
Список | pgsql-hackers |
On Fri, Nov 13, 2020 at 12:22 PM Heikki Linnakangas <hlinnaka@iki.fi> wrote:
On 12/11/2020 15:17, Daniel Gustafsson wrote:
>> On 5 Oct 2020, at 14:14, Heikki Linnakangas <hlinnaka@iki.fi> wrote:
>> I would expect the checksums worker to be automatically started at postmaster startup. Can we make that happen?
>
> A dynamic background worker has to be registered from a regular backend, so
> it's not entirely clear to me where in startup processing that would take
> place. Do you have any good suggestions?
Could you launch it from the startup process, in StartupXLOG()?
Does it have to be dynamic?
If it's not dynamic, you can't start it from a regular backend can you? So then you'd need a restart for it to happen?
As for launching it from the startup process I don't know, that might be a viable path. The code specifically explains why it's not possible to launch it from the postmaster, but I don't see anything that would make it impossible from the startup process.
В списке pgsql-hackers по дате отправления: