v19-0008-Fix-error-message-for-get_bin_directory.patch

application/octet-stream

Filename: v19-0008-Fix-error-message-for-get_bin_directory.patch
Type: application/octet-stream
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 v19-0008
Subject: Fix error message for get_bin_directory
File+
src/bin/pg_basebackup/pg_createsubscriber.c 1 3
From b30d78f010b12ddad317ca67b698421101c231a4 Mon Sep 17 00:00:00 2001
From: Hayato Kuroda <kuroda.hayato@fujitsu.com>
Date: Tue, 13 Feb 2024 12:08:40 +0000
Subject: [PATCH v19 8/9] Fix error message for get_bin_directory

---
 src/bin/pg_basebackup/pg_createsubscriber.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/src/bin/pg_basebackup/pg_createsubscriber.c b/src/bin/pg_basebackup/pg_createsubscriber.c
index a20cec8312..28ea5835e9 100644
--- a/src/bin/pg_basebackup/pg_createsubscriber.c
+++ b/src/bin/pg_basebackup/pg_createsubscriber.c
@@ -252,9 +252,7 @@ get_bin_directory(const char *path)
 
 	if (find_my_exec(path, full_path) < 0)
 	{
-		pg_log_error("The program \"%s\" is needed by %s but was not found in the\n"
-					 "same directory as \"%s\".\n",
-					 "pg_ctl", progname, full_path);
+		pg_log_error("invalid binary directory");
 		pg_log_error_hint("Check your installation.");
 		exit(1);
 	}
-- 
2.43.0