mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-26 16:46:28 +00:00
pg_replslot will only exist in 9.4 and later
We need to clean this up regardless of whether "use_replication_slots" is set.
This commit is contained in:
3
repmgr.c
3
repmgr.c
@@ -1833,6 +1833,8 @@ stop_backup:
|
|||||||
* functionality of replication slots
|
* functionality of replication slots
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
if (server_version_num >= 90400)
|
||||||
|
{
|
||||||
maxlen_snprintf(script, "rm -rf %s/pg_replslot/*",
|
maxlen_snprintf(script, "rm -rf %s/pg_replslot/*",
|
||||||
local_data_directory);
|
local_data_directory);
|
||||||
r = system(script);
|
r = system(script);
|
||||||
@@ -1843,6 +1845,7 @@ stop_backup:
|
|||||||
exit(ERR_BAD_RSYNC);
|
exit(ERR_BAD_RSYNC);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/* Finally, write the recovery.conf file */
|
/* Finally, write the recovery.conf file */
|
||||||
create_recovery_file(local_data_directory);
|
create_recovery_file(local_data_directory);
|
||||||
|
|||||||
Reference in New Issue
Block a user