Skip to content

Commit

Permalink
Implement support for PostgreSQL 12 "standby.signal". (#51)
Browse files Browse the repository at this point in the history
* Implement support for PostgreSQL 12 "standby.signal".

In Postgres 12 the setup to start as a standby has changed. The standby
configuration parameters go in the main postgresql.conf file, and the
decision to start in standby mode depends on the existence of a new file,
named "standby.signal".

Adapting the code to this new system requires some refactoring.
  • Loading branch information
DimCitus committed Sep 2, 2019
1 parent 155b435 commit 8bcd80c
Show file tree
Hide file tree
Showing 7 changed files with 305 additions and 67 deletions.
2 changes: 1 addition & 1 deletion src/bin/pg_autoctl/monitor_pg_init.c
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ monitor_pg_init(Monitor *monitor, MonitorConfig *config)
if (!pg_add_auto_failover_default_settings(&pgSetup, configFilePath,
monitor_default_settings))
{
log_error("Failed to add default settings to \"%s\".conf: couldn't "
log_error("Failed to add default settings to \"%s\": couldn't "
"write the new postgresql.conf, see above for details",
configFilePath);
return false;
Expand Down

0 comments on commit 8bcd80c

Please sign in to comment.