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:
@@ -373,7 +373,7 @@ MarkAsPreparing(TransactionId xid, const char *gid,
|
||||
ereport(ERROR,
|
||||
(errcode(ERRCODE_OBJECT_NOT_IN_PREREQUISITE_STATE),
|
||||
errmsg("prepared transactions are disabled"),
|
||||
errhint("Set max_prepared_transactions to a nonzero value.")));
|
||||
errhint("Set \"max_prepared_transactions\" to a nonzero value.")));
|
||||
|
||||
/* on first call, register the exit hook */
|
||||
if (!twophaseExitRegistered)
|
||||
@@ -402,7 +402,7 @@ MarkAsPreparing(TransactionId xid, const char *gid,
|
||||
ereport(ERROR,
|
||||
(errcode(ERRCODE_OUT_OF_MEMORY),
|
||||
errmsg("maximum number of prepared transactions reached"),
|
||||
errhint("Increase max_prepared_transactions (currently %d).",
|
||||
errhint("Increase \"max_prepared_transactions\" (currently %d).",
|
||||
max_prepared_xacts)));
|
||||
gxact = TwoPhaseState->freeGXacts;
|
||||
TwoPhaseState->freeGXacts = gxact->next;
|
||||
@@ -2539,7 +2539,7 @@ PrepareRedoAdd(char *buf, XLogRecPtr start_lsn,
|
||||
ereport(ERROR,
|
||||
(errcode(ERRCODE_OUT_OF_MEMORY),
|
||||
errmsg("maximum number of prepared transactions reached"),
|
||||
errhint("Increase max_prepared_transactions (currently %d).",
|
||||
errhint("Increase \"max_prepared_transactions\" (currently %d).",
|
||||
max_prepared_xacts)));
|
||||
gxact = TwoPhaseState->freeGXacts;
|
||||
TwoPhaseState->freeGXacts = gxact->next;
|
||||
|
||||
Reference in New Issue
Block a user