mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-24 23:56:29 +00:00
Use "immediately_reserve" parameter in pg_create_physical_replication_slot (9.6)
This commit is contained in:
6
repmgr.c
6
repmgr.c
@@ -1585,7 +1585,7 @@ do_standby_clone(void)
|
||||
*/
|
||||
if (options.use_replication_slots)
|
||||
{
|
||||
if (create_replication_slot(upstream_conn, repmgr_slot_name) == false)
|
||||
if (create_replication_slot(upstream_conn, repmgr_slot_name, server_version_num) == false)
|
||||
{
|
||||
PQfinish(upstream_conn);
|
||||
exit(ERR_DB_QUERY);
|
||||
@@ -2368,7 +2368,9 @@ do_standby_follow(void)
|
||||
|
||||
if (options.use_replication_slots)
|
||||
{
|
||||
if (create_replication_slot(master_conn, repmgr_slot_name) == false)
|
||||
int server_version_num = get_server_version(master_conn, NULL);
|
||||
|
||||
if (create_replication_slot(master_conn, repmgr_slot_name, server_version_num) == false)
|
||||
{
|
||||
PQExpBufferData event_details;
|
||||
initPQExpBuffer(&event_details);
|
||||
|
||||
Reference in New Issue
Block a user