mirror of
https://github.com/postgres/postgres.git
synced 2025-11-09 06:21:09 +03:00
Revise GUC names quoting in messages again
After further review, we want to move in the direction of always quoting GUC names in error messages, rather than the previous (PG16) wildly mixed practice or the intermittent (mid-PG17) idea of doing this depending on how possibly confusing the GUC name is. This commit applies appropriate quotes to (almost?) all mentions of GUC names in error messages. It partially supersedesa243569bf6and8d9978a717, which had moved things a bit in the opposite direction but which then were abandoned in a partial state. Author: Peter Smith <smithpb2250@gmail.com> Discussion: https://www.postgresql.org/message-id/flat/CAHut%2BPv-kSN8SkxSdoHano_wPubqcg5789ejhCDZAcLFceBR-w%40mail.gmail.com
This commit is contained in:
@@ -187,7 +187,7 @@ replorigin_check_prerequisites(bool check_slots, bool recoveryOK)
|
||||
if (check_slots && max_replication_slots == 0)
|
||||
ereport(ERROR,
|
||||
(errcode(ERRCODE_OBJECT_NOT_IN_PREREQUISITE_STATE),
|
||||
errmsg("cannot query or manipulate replication origin when max_replication_slots = 0")));
|
||||
errmsg("cannot query or manipulate replication origin when \"max_replication_slots\" is 0")));
|
||||
|
||||
if (!recoveryOK && RecoveryInProgress())
|
||||
ereport(ERROR,
|
||||
@@ -795,7 +795,7 @@ StartupReplicationOrigin(void)
|
||||
if (last_state == max_replication_slots)
|
||||
ereport(PANIC,
|
||||
(errcode(ERRCODE_CONFIGURATION_LIMIT_EXCEEDED),
|
||||
errmsg("could not find free replication state, increase max_replication_slots")));
|
||||
errmsg("could not find free replication state, increase \"max_replication_slots\"")));
|
||||
|
||||
/* copy data to shared memory */
|
||||
replication_states[last_state].roident = disk_state.roident;
|
||||
@@ -954,7 +954,7 @@ replorigin_advance(RepOriginId node,
|
||||
(errcode(ERRCODE_CONFIGURATION_LIMIT_EXCEEDED),
|
||||
errmsg("could not find free replication state slot for replication origin with ID %d",
|
||||
node),
|
||||
errhint("Increase max_replication_slots and try again.")));
|
||||
errhint("Increase \"max_replication_slots\" and try again.")));
|
||||
|
||||
if (replication_state == NULL)
|
||||
{
|
||||
@@ -1155,7 +1155,7 @@ replorigin_session_setup(RepOriginId node, int acquired_by)
|
||||
(errcode(ERRCODE_CONFIGURATION_LIMIT_EXCEEDED),
|
||||
errmsg("could not find free replication state slot for replication origin with ID %d",
|
||||
node),
|
||||
errhint("Increase max_replication_slots and try again.")));
|
||||
errhint("Increase \"max_replication_slots\" and try again.")));
|
||||
else if (session_replication_state == NULL)
|
||||
{
|
||||
/* initialize new slot */
|
||||
|
||||
Reference in New Issue
Block a user