Hi > index 2e7f1d7..d983a50 100644 > --- a/src/backend/postmaster/postmaster.c > +++ b/src/backend/postmaster/postmaster.c > @@ -4933,6 +4933,11 @@ sigusr1_handler(SIGNAL_ARGS) > if (XLogArchivingAlways()) > PgArchPID = pgarch_start(); > > +#ifdef USE_SYSTEMD > + if (!EnableHotStandby) > + sd_notify(0, "READY=1"); > +#endif > + > pmState = PM_RECOVERY; > } > if (CheckPostmasterSignal(PMSIGNAL_BEGIN_HOT_STANDBY) && >
I cannot to check it this week, but this should to work. "ready" state for standby only mode starting when slave is able to get wal records or segments from server. I will test it next week. regards Pavel > > Default timeout on FC is 90 sec - it is should not to be enough for > > large servers with large shared buffers and high checkpoint segments. It > > should be mentioned in service file. > > Good point. I think we should set TimeoutSec=0 in the suggested service file. >