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:
@ -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 */
|
||||
|
Reference in New Issue
Block a user