v32-0003-Fix-compilation-error.patch

application/x-patch

Filename: v32-0003-Fix-compilation-error.patch
Type: application/x-patch
Part: 0
Message: Re: speed up a logical replica setup

Patch

Same data as JSON: GET /api/v1/attachments/:id/patch the parsed metadata as JSON — format, series position, per-file stats; never the diff bytes. API reference →
Format: format-patch
Series: patch v32-0003
Subject: Fix compilation error
File+
src/bin/pg_basebackup/pg_createsubscriber.c 1 1
From 164b956524ce2b468eab8c7bbb5d0748288c028c Mon Sep 17 00:00:00 2001
From: Shlok Kyal <shlok.kyal.oss@gmail.com>
Date: Thu, 21 Mar 2024 15:04:58 +0530
Subject: [PATCH v32 3/3] Fix compilation error

Fix compilation error due to a recent commit
---
 src/bin/pg_basebackup/pg_createsubscriber.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/bin/pg_basebackup/pg_createsubscriber.c b/src/bin/pg_basebackup/pg_createsubscriber.c
index f146fcb5ed..3a8240ea78 100644
--- a/src/bin/pg_basebackup/pg_createsubscriber.c
+++ b/src/bin/pg_basebackup/pg_createsubscriber.c
@@ -1109,7 +1109,7 @@ setup_recovery(const struct LogicalRepInfo *dbinfo, const char *datadir, const c
 	 * state is reached (recovery_target) and failure due to multiple recovery
 	 * targets (name, time, xid, LSN).
 	 */
-	recoveryconfcontents = GenerateRecoveryConfig(conn, NULL);
+	recoveryconfcontents = GenerateRecoveryConfig(conn, NULL, NULL);
 	appendPQExpBuffer(recoveryconfcontents, "recovery_target = ''\n");
 	appendPQExpBuffer(recoveryconfcontents,
 					  "recovery_target_timeline = 'latest'\n");
-- 
2.34.1