1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-07 00:36:50 +03:00

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>
This commit is contained in:
Peter Eisentraut
2016-07-26 11:23:43 -04:00
parent eb5089a05b
commit c1dc51d484
5 changed files with 62 additions and 18 deletions

View File

@ -12,6 +12,6 @@
#include "catalog/pg_control.h"
extern ControlFileData *get_controlfile(char *DataDir, const char *progname);
extern ControlFileData *get_controlfile(const char *DataDir, const char *progname);
#endif /* COMMON_CONTROLDATA_UTILS_H */