]> granicus.if.org Git - postgresql/commit
pg_ctl: Detect current standby state from pg_control
authorPeter Eisentraut <peter_e@gmx.net>
Tue, 26 Jul 2016 15:23:43 +0000 (11:23 -0400)
committerPeter Eisentraut <peter_e@gmx.net>
Wed, 21 Sep 2016 16:00:00 +0000 (12:00 -0400)
commitc1dc51d4844e2a37412b034c07c1c5a439ba0b9d
tree5da243eb19c5c9d494958a61165a3fbf87974963
parenteb5089a05ba0852cc3eafea53c5d23e7633fca81
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>
src/backend/utils/misc/pg_controldata.c
src/bin/pg_controldata/pg_controldata.c
src/bin/pg_ctl/pg_ctl.c
src/common/controldata_utils.c
src/include/common/controldata_utils.h