mirror of
https://github.com/postgres/postgres.git
synced 2025-07-26 01:22:12 +03:00
Apply more quoting to GUC names in messages
This is a continuation of 17974ec259
. More quotes are applied to
GUC names in error messages and hints, taking care of what seems to be
all the remaining holes currently in the tree for the GUCs.
Author: Peter Smith
Discussion: https://postgr.es/m/CAHut+Pv-kSN8SkxSdoHano_wPubqcg5789ejhCDZAcLFceBR-w@mail.gmail.com
This commit is contained in:
@ -337,7 +337,7 @@ logicalrep_worker_launch(LogicalRepWorkerType wtype,
|
||||
if (max_replication_slots == 0)
|
||||
ereport(ERROR,
|
||||
(errcode(ERRCODE_CONFIGURATION_LIMIT_EXCEEDED),
|
||||
errmsg("cannot start logical replication workers when max_replication_slots = 0")));
|
||||
errmsg("cannot start logical replication workers when \"max_replication_slots\"=0")));
|
||||
|
||||
/*
|
||||
* We need to do the modification of the shared memory under lock so that
|
||||
|
@ -962,14 +962,14 @@ validate_remote_info(WalReceiverConn *wrconn)
|
||||
|
||||
if (res->status != WALRCV_OK_TUPLES)
|
||||
ereport(ERROR,
|
||||
errmsg("could not fetch primary_slot_name \"%s\" info from the primary server: %s",
|
||||
errmsg("could not fetch primary slot name \"%s\" info from the primary server: %s",
|
||||
PrimarySlotName, res->err),
|
||||
errhint("Check if primary_slot_name is configured correctly."));
|
||||
errhint("Check if \"primary_slot_name\" is configured correctly."));
|
||||
|
||||
tupslot = MakeSingleTupleTableSlot(res->tupledesc, &TTSOpsMinimalTuple);
|
||||
if (!tuplestore_gettupleslot(res->tuplestore, true, false, tupslot))
|
||||
elog(ERROR,
|
||||
"failed to fetch tuple for the primary server slot specified by primary_slot_name");
|
||||
"failed to fetch tuple for the primary server slot specified by \"primary_slot_name\"");
|
||||
|
||||
remote_in_recovery = DatumGetBool(slot_getattr(tupslot, 1, &isnull));
|
||||
Assert(!isnull);
|
||||
|
Reference in New Issue
Block a user