Add compatibility with postgres master (upcoming PG-15). (#410)

Upstream commit cda03cfed6b changed CreateReplicationSlot() signature
This commit is contained in:
Mikhail A. Kulagin
2021-07-15 12:25:32 +03:00
committed by GitHub
parent f63faad5e7
commit 817b79b00f
+6 -1
View File
@@ -185,7 +185,12 @@ StreamLog(void *arg)
#endif
#if PG_VERSION_NUM >= 110000
#if PG_VERSION_NUM >= 150000
/* Create temp repslot */
if (temp_slot)
CreateReplicationSlot(stream_arg->conn, replication_slot,
NULL, temp_slot, true, true, false, false);
#elif PG_VERSION_NUM >= 110000
/* Create temp repslot */
if (temp_slot)
CreateReplicationSlot(stream_arg->conn, replication_slot,