Re: Synchronizing slots from primary to standby
От | Amit Kapila |
---|---|
Тема | Re: Synchronizing slots from primary to standby |
Дата | |
Msg-id | CAA4eK1KCcw+HSsJAaOuONpyWvM1QFjybCUb8wkeAWWc6sGPpYw@mail.gmail.com обсуждение исходный текст |
Ответ на | Re: Synchronizing slots from primary to standby (Bertrand Drouvot <bertranddrouvot.pg@gmail.com>) |
Список | pgsql-hackers |
On Mon, Apr 1, 2024 at 6:58 PM Bertrand Drouvot <bertranddrouvot.pg@gmail.com> wrote: > > On Mon, Apr 01, 2024 at 05:04:53PM +0530, Amit Kapila wrote: > > On Mon, Apr 1, 2024 at 2:51 PM Bertrand Drouvot > > <bertranddrouvot.pg@gmail.com> wrote: > > > Then there is no need to call WaitForStandbyConfirmation() as it could go until > > > the RecoveryInProgress() in StandbySlotsHaveCaughtup() for nothing (as we already > > > know it). > > > > > > > Won't it will normally return from the first check in > > WaitForStandbyConfirmation() because standby_slot_names_config is not > > set on standby? > > I think standby_slot_names can be set on a standby. One could want to set it in > a cascading standby env (though it won't have any real effects until the standby > is promoted). > Yeah, it is possible but doesn't seem worth additional checks for this micro-optimization. -- With Regards, Amit Kapila.
В списке pgsql-hackers по дате отправления: