diff options
author | Amit Kapila <akapila@postgresql.org> | 2022-09-21 09:43:59 +0530 |
---|---|---|
committer | Amit Kapila <akapila@postgresql.org> | 2022-09-21 09:43:59 +0530 |
commit | 6971a839ccdf1131ddf1fa2fa405cba43cd68608 (patch) | |
tree | 236b58276decefa1e7d3cf2dea66cfa489d98cbb | |
parent | 3f0c901e744c87f6e00744e63afe0242d5fe45e9 (diff) | |
download | postgresql-6971a839ccdf1131ddf1fa2fa405cba43cd68608.tar.gz postgresql-6971a839ccdf1131ddf1fa2fa405cba43cd68608.zip |
Improve some error messages.
It is not our usual style to use "we" in the error messages.
Author: Kyotaro Horiguchi
Reviewed-By: Amit Kapila
Discussion: https://postgr.es/m/20220914.111507.13049297635620898.horikyota.ntt@gmail.com
-rw-r--r-- | src/backend/replication/pgoutput/pgoutput.c | 4 | ||||
-rw-r--r-- | src/backend/storage/file/fd.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/backend/replication/pgoutput/pgoutput.c b/src/backend/replication/pgoutput/pgoutput.c index 03b13ae6798..880580ed00a 100644 --- a/src/backend/replication/pgoutput/pgoutput.c +++ b/src/backend/replication/pgoutput/pgoutput.c @@ -441,13 +441,13 @@ pgoutput_startup(LogicalDecodingContext *ctx, OutputPluginOptions *opt, if (data->protocol_version > LOGICALREP_PROTO_MAX_VERSION_NUM) ereport(ERROR, (errcode(ERRCODE_FEATURE_NOT_SUPPORTED), - errmsg("client sent proto_version=%d but we only support protocol %d or lower", + errmsg("client sent proto_version=%d but server only supports protocol %d or lower", data->protocol_version, LOGICALREP_PROTO_MAX_VERSION_NUM))); if (data->protocol_version < LOGICALREP_PROTO_MIN_VERSION_NUM) ereport(ERROR, (errcode(ERRCODE_FEATURE_NOT_SUPPORTED), - errmsg("client sent proto_version=%d but we only support protocol %d or higher", + errmsg("client sent proto_version=%d but server only supports protocol %d or higher", data->protocol_version, LOGICALREP_PROTO_MIN_VERSION_NUM))); if (data->publication_names == NIL) diff --git a/src/backend/storage/file/fd.c b/src/backend/storage/file/fd.c index 20c3741aa1e..073dab2be59 100644 --- a/src/backend/storage/file/fd.c +++ b/src/backend/storage/file/fd.c @@ -978,7 +978,7 @@ set_max_safe_fds(void) ereport(FATAL, (errcode(ERRCODE_INSUFFICIENT_RESOURCES), errmsg("insufficient file descriptors available to start server process"), - errdetail("System allows %d, we need at least %d.", + errdetail("System allows %d, server needs at least %d.", max_safe_fds + NUM_RESERVED_FDS, FD_MINFREE + NUM_RESERVED_FDS))); |