pg_ctl: Detect current standby state from pg_control
Peter Eisentraut <peter_e@gmx.net>
pg_ctl: Detect current standby state from pg_control pg_ctl used to determine whether a server was in standby mode by looking for a recovery.conf file. With this change, it instead looks into pg_control, which is potentially more accurate. There are also occasional discussions about removing recovery.conf, so this removes one dependency. Reviewed-by: Michael Paquier <michael.paquier@gmail.com>
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/utils/misc/pg_controldata.c | modified | +12 −0 |
| src/bin/pg_controldata/pg_controldata.c | modified | +4 −0 |
| src/bin/pg_ctl/pg_ctl.c | modified | +38 −9 |
| src/common/controldata_utils.c | modified | +7 −8 |
| src/include/common/controldata_utils.h | modified | +1 −1 |