From 0e392fcc0d5ab73c81d9284e7dda5acbb7ad6d21 Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Wed, 17 Feb 2021 11:24:46 +0100 Subject: Use errmsg_internal for debug messages An inconsistent set of debug-level messages was not using errmsg_internal(), thus uselessly exposing the messages to translation work. Fix those. --- src/backend/tcop/postgres.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/backend/tcop/postgres.c') diff --git a/src/backend/tcop/postgres.c b/src/backend/tcop/postgres.c index cb5a96117f6..bb5ccb4578b 100644 --- a/src/backend/tcop/postgres.c +++ b/src/backend/tcop/postgres.c @@ -353,7 +353,7 @@ SocketBackend(StringInfo inBuf) whereToSendOutput = DestNone; ereport(DEBUG1, (errcode(ERRCODE_CONNECTION_DOES_NOT_EXIST), - errmsg("unexpected EOF on client connection"))); + errmsg_internal("unexpected EOF on client connection"))); } return qtype; } @@ -389,7 +389,7 @@ SocketBackend(StringInfo inBuf) whereToSendOutput = DestNone; ereport(DEBUG1, (errcode(ERRCODE_CONNECTION_DOES_NOT_EXIST), - errmsg("unexpected EOF on client connection"))); + errmsg_internal("unexpected EOF on client connection"))); } return EOF; } @@ -416,7 +416,7 @@ SocketBackend(StringInfo inBuf) whereToSendOutput = DestNone; ereport(DEBUG1, (errcode(ERRCODE_CONNECTION_DOES_NOT_EXIST), - errmsg("unexpected EOF on client connection"))); + errmsg_internal("unexpected EOF on client connection"))); } return EOF; } @@ -1375,7 +1375,7 @@ exec_parse_message(const char *query_string, /* string to execute */ ResetUsage(); ereport(DEBUG2, - (errmsg("parse %s: %s", + (errmsg_internal("parse %s: %s", *stmt_name ? stmt_name : "", query_string))); @@ -1631,7 +1631,7 @@ exec_bind_message(StringInfo input_message) stmt_name = pq_getmsgstring(input_message); ereport(DEBUG2, - (errmsg("bind %s to %s", + (errmsg_internal("bind %s to %s", *portal_name ? portal_name : "", *stmt_name ? stmt_name : ""))); @@ -3092,7 +3092,7 @@ ProcessInterrupts(void) else if (IsLogicalLauncher()) { ereport(DEBUG1, - (errmsg("logical replication launcher shutting down"))); + (errmsg_internal("logical replication launcher shutting down"))); /* * The logical replication launcher can be stopped at any time. -- cgit v1.2.3