On Thursday, December 14, 2023 12:45 PM Peter Smith <smithpb2...@gmail.com> wrote:
> A review comment for v47-0001 Thanks for the comment. > > ====== > src/backend/replication/slot.c > > 1. GetStandbySlotList > > +static void > +WalSndRereadConfigAndReInitSlotList(List **standby_slots) { > + char *pre_standby_slot_names; > + > + ProcessConfigFile(PGC_SIGHUP); > + > + /* > + * If we are running on a standby, there is no need to reload > + * standby_slot_names since we do not support syncing slots to > + cascading > + * standbys. > + */ > + if (RecoveryInProgress()) > + return; > > Should the RecoveryInProgress() check be first -- even before the > ProcessConfigFile call? ProcessConfigFile is necessary here, it is used not only for standby_slot_names but also all other GUCs that could be used in the caller. Best Regards, Hou zj