aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Eisentraut <peter@eisentraut.org>2024-08-27 16:15:28 +0200
committerPeter Eisentraut <peter@eisentraut.org>2024-08-27 16:16:16 +0200
commit203b5ceee88c377110260e8c69083ef24b54fc68 (patch)
tree8e29b2ad6011fff187b69095fed267d80d77b20e
parentc739ae9e288c095cfe1b91ce27a2f2c075ed5da4 (diff)
downloadpostgresql-203b5ceee88c377110260e8c69083ef24b54fc68.tar.gz
postgresql-203b5ceee88c377110260e8c69083ef24b54fc68.zip
Fix misplaced translator comments
They did not immediately precede the code they were applying to.
-rw-r--r--src/backend/replication/logical/slotsync.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/src/backend/replication/logical/slotsync.c b/src/backend/replication/logical/slotsync.c
index 94896aec284..f2bebefcfde 100644
--- a/src/backend/replication/logical/slotsync.c
+++ b/src/backend/replication/logical/slotsync.c
@@ -1021,11 +1021,8 @@ CheckAndGetDbnameFromConninfo(void)
dbname = walrcv_get_dbname_from_conninfo(PrimaryConnInfo);
if (dbname == NULL)
ereport(ERROR,
-
- /*
- * translator: dbname is a specific option; %s is a GUC variable name
- */
errcode(ERRCODE_INVALID_PARAMETER_VALUE),
+ /* translator: dbname is a specific option; %s is a GUC variable name */
errmsg("slot synchronization requires dbname to be specified in %s",
"primary_conninfo"));
return dbname;
@@ -1058,8 +1055,8 @@ ValidateSlotSyncParams(int elevel)
if (PrimarySlotName == NULL || *PrimarySlotName == '\0')
{
ereport(elevel,
- /* translator: %s is a GUC variable name */
errcode(ERRCODE_INVALID_PARAMETER_VALUE),
+ /* translator: %s is a GUC variable name */
errmsg("slot synchronization requires %s to be defined", "primary_slot_name"));
return false;
}
@@ -1072,8 +1069,8 @@ ValidateSlotSyncParams(int elevel)
if (!hot_standby_feedback)
{
ereport(elevel,
- /* translator: %s is a GUC variable name */
errcode(ERRCODE_INVALID_PARAMETER_VALUE),
+ /* translator: %s is a GUC variable name */
errmsg("slot synchronization requires %s to be enabled",
"hot_standby_feedback"));
return false;
@@ -1086,8 +1083,8 @@ ValidateSlotSyncParams(int elevel)
if (PrimaryConnInfo == NULL || *PrimaryConnInfo == '\0')
{
ereport(elevel,
- /* translator: %s is a GUC variable name */
errcode(ERRCODE_INVALID_PARAMETER_VALUE),
+ /* translator: %s is a GUC variable name */
errmsg("slot synchronization requires %s to be defined",
"primary_conninfo"));
return false;