diff options
author | Peter Eisentraut <peter_e@gmx.net> | 2016-07-26 11:23:43 -0400 |
---|---|---|
committer | Peter Eisentraut <peter_e@gmx.net> | 2016-09-21 12:00:00 -0400 |
commit | c1dc51d4844e2a37412b034c07c1c5a439ba0b9d (patch) | |
tree | 5da243eb19c5c9d494958a61165a3fbf87974963 /src/include | |
parent | eb5089a05ba0852cc3eafea53c5d23e7633fca81 (diff) |
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>
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/common/controldata_utils.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/include/common/controldata_utils.h b/src/include/common/controldata_utils.h index a355d2252df..f834624e4e7 100644 --- a/src/include/common/controldata_utils.h +++ b/src/include/common/controldata_utils.h @@ -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 */ |