diff options
author | Peter Eisentraut <peter@eisentraut.org> | 2024-05-17 11:23:08 +0200 |
---|---|---|
committer | Peter Eisentraut <peter@eisentraut.org> | 2024-05-17 11:44:26 +0200 |
commit | 17974ec259463869bb6bb4885d46847422fbc9ec (patch) | |
tree | 11cd393058415b42093277f2e15de7bf1e186579 /src/bin/pg_rewind/libpq_source.c | |
parent | be5942aee7a012ce7f30bc7a6617903127f29e89 (diff) | |
download | postgresql-17974ec259463869bb6bb4885d46847422fbc9ec.tar.gz postgresql-17974ec259463869bb6bb4885d46847422fbc9ec.zip |
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 supersedes a243569bf65 and
8d9978a7176, 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
Diffstat (limited to 'src/bin/pg_rewind/libpq_source.c')
-rw-r--r-- | src/bin/pg_rewind/libpq_source.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bin/pg_rewind/libpq_source.c b/src/bin/pg_rewind/libpq_source.c index 7d898c3b501..9378266d28e 100644 --- a/src/bin/pg_rewind/libpq_source.c +++ b/src/bin/pg_rewind/libpq_source.c @@ -128,7 +128,7 @@ init_libpq_conn(PGconn *conn) /* secure search_path */ res = PQexec(conn, ALWAYS_SECURE_SEARCH_PATH_SQL); if (PQresultStatus(res) != PGRES_TUPLES_OK) - pg_fatal("could not clear search_path: %s", + pg_fatal("could not clear \"search_path\": %s", PQresultErrorMessage(res)); PQclear(res); @@ -139,7 +139,7 @@ init_libpq_conn(PGconn *conn) */ str = run_simple_query(conn, "SHOW full_page_writes"); if (strcmp(str, "on") != 0) - pg_fatal("full_page_writes must be enabled in the source server"); + pg_fatal("\"full_page_writes\" must be enabled in the source server"); pg_free(str); /* Prepare a statement we'll use to fetch files */ |