v9-0005-Add-quotes-for-GUCs-enum.patch
application/octet-stream
Filename: v9-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 v9-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 e3d37bb4ee13aedd13ab1e2a12170d865961349d Mon Sep 17 00:00:00 2001
From: Peter Smith <peter.b.smith@fujitsu.com>
Date: Tue, 20 Aug 2024 15:39:25 +1000
Subject: [PATCH v9] 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 ee0fb0e..8c9e048 100644
--- a/src/backend/access/transam/xlog.c
+++ b/src/backend/access/transam/xlog.c
@@ -9111,7 +9111,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 c2c9d10..822b4f4 100644
--- a/src/bin/pg_basebackup/pg_createsubscriber.c
+++ b/src/bin/pg_basebackup/pg_createsubscriber.c
@@ -911,7 +911,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