v8-0005-Add-quotes-for-GUCs-enum.patch

application/octet-stream

Filename: v8-0005-Add-quotes-for-GUCs-enum.patch
Type: application/octet-stream
Part: 1
Message: Re: GUC names in messages

Patch

Format: format-patch
Series: patch v8-0005
Subject: Add quotes for GUCs - enum
File+
src/backend/access/transam/xlog.c 1 1
src/bin/pg_basebackup/pg_createsubscriber.c 1 1
From 53e6bddaff689ce251602eb80c618dabfbee6b36 Mon Sep 17 00:00:00 2001
From: Peter Smith <peter.b.smith@fujitsu.com>
Date: Tue, 11 Jun 2024 11:11:03 +1000
Subject: [PATCH v8] Add quotes for GUCs - enum

---
 src/backend/access/transam/xlog.c           | 2 +-
 src/bin/pg_basebackup/pg_createsubscriber.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/backend/access/transam/xlog.c b/src/backend/access/transam/xlog.c
index 330e058..1f3e601 100644
--- a/src/backend/access/transam/xlog.c
+++ b/src/backend/access/transam/xlog.c
@@ -9061,7 +9061,7 @@ do_pg_backup_stop(BackupState *state, bool waitforarchive)
 		ereport(ERROR,
 				(errcode(ERRCODE_OBJECT_NOT_IN_PREREQUISITE_STATE),
 				 errmsg("WAL level not sufficient for making an online backup"),
-				 errhint("wal_level must be set to \"replica\" or \"logical\" at server start.")));
+				 errhint("\"wal_level\" must be set to \"replica\" or \"logical\" at server start.")));
 
 	/*
 	 * OK to update backup counter and session-level lock.
diff --git a/src/bin/pg_basebackup/pg_createsubscriber.c b/src/bin/pg_basebackup/pg_createsubscriber.c
index acfb419..78e7fbb 100644
--- a/src/bin/pg_basebackup/pg_createsubscriber.c
+++ b/src/bin/pg_basebackup/pg_createsubscriber.c
@@ -924,7 +924,7 @@ check_publisher(const struct LogicalRepInfo *dbinfo)
 
 	if (strcmp(wal_level, "logical") != 0)
 	{
-		pg_log_error("publisher requires wal_level >= \"logical\"");
+		pg_log_error("publisher requires \"wal_level\" >= \"logical\"");
 		failed = true;
 	}
 
-- 
1.8.3.1