aboutsummaryrefslogtreecommitdiff
path: root/src/backend/tcop/postgres.c
diff options
context:
space:
mode:
authorPeter Eisentraut <peter@eisentraut.org>2021-02-17 11:24:46 +0100
committerPeter Eisentraut <peter@eisentraut.org>2021-02-17 11:33:25 +0100
commit0e392fcc0d5ab73c81d9284e7dda5acbb7ad6d21 (patch)
treebe7ce5174e2fe8f180c5853834066edc10666cbb /src/backend/tcop/postgres.c
parente6b8e83b9f012cfbb3a2f96a7d2e74aebd299d4e (diff)
downloadpostgresql-0e392fcc0d5ab73c81d9284e7dda5acbb7ad6d21.tar.gz
postgresql-0e392fcc0d5ab73c81d9284e7dda5acbb7ad6d21.zip
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.
Diffstat (limited to 'src/backend/tcop/postgres.c')
-rw-r--r--src/backend/tcop/postgres.c12
1 files changed, 6 insertions, 6 deletions
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 : "<unnamed>",
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 : "<unnamed>",
*stmt_name ? stmt_name : "<unnamed>")));
@@ -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.