mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-24 23:56:29 +00:00
Log warning if "standby_disconnect_on_failover" used on pre-9.5
"standby_disconnect_on_failover" requires availability of "wal_retrieve_retry_interval", which is available from PostgreSQL 9.5. 9.4 will fall out of community support this year, so it doesn't seem productive at this point to do anything more than put the onus on the user to read the documentation and heed any warning messages in the logs.
This commit is contained in:
@@ -383,6 +383,15 @@ main(int argc, char **argv)
|
||||
* repmgr has not been properly configured.
|
||||
*/
|
||||
|
||||
|
||||
/* warn about any settings which might not be relevant for the current PostgreSQL version */
|
||||
if (config_file_options.standby_disconnect_on_failover == true && PQserverVersion(local_conn) < 90500)
|
||||
{
|
||||
log_warning(_("\"standby_disconnect_on_failover\" specified, but not available for this PostgreSQL version"));
|
||||
/* TODO: format server version */
|
||||
log_detail(_("available from PostgreSQL 9.5, this PostgreSQL version is %i"), PQserverVersion(local_conn));
|
||||
}
|
||||
|
||||
/* Check "repmgr" the extension is installed */
|
||||
extension_status = get_repmgr_extension_status(local_conn, &extversions);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user