'Shutdown <= SmartShutdown' check while launching processes in postmaster.

2024-02-20 Thread shveta malik
Hi hackers, I would like to know that why we have 'Shutdown <= SmartShutdown' check before launching few processes (WalReceiver, WalSummarizer, AutoVacuum worker) while rest of the processes (BGWriter, WalWriter, Checkpointer, Archiver etc) do not have any such check. If I have to launch a new pro

Re: 'Shutdown <= SmartShutdown' check while launching processes in postmaster.

2024-02-20 Thread Tom Lane
shveta malik writes: > I would like to know that why we have 'Shutdown <= SmartShutdown' > check before launching few processes (WalReceiver, WalSummarizer, > AutoVacuum worker) while rest of the processes (BGWriter, WalWriter, > Checkpointer, Archiver etc) do not have any such check. If I have to

Re: 'Shutdown <= SmartShutdown' check while launching processes in postmaster.

2024-02-21 Thread shveta malik
On Wed, Feb 21, 2024 at 10:01 AM Tom Lane wrote: > > shveta malik writes: > > I would like to know that why we have 'Shutdown <= SmartShutdown' > > check before launching few processes (WalReceiver, WalSummarizer, > > AutoVacuum worker) while rest of the processes (BGWriter, WalWriter, > > Checkp

Re: 'Shutdown <= SmartShutdown' check while launching processes in postmaster.

2024-02-21 Thread Bharath Rupireddy
On Wed, Feb 21, 2024 at 3:38 PM shveta malik wrote: > > > Children that are stopped by the "if (pmState == PM_STOP_BACKENDS)" > > stanza in PostmasterStateMachine should not be allowed to start > > again later if we are trying to shut down. (But "smart" shutdown > > doesn't enforce that, since it