aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Eisentraut <peter@eisentraut.org>2023-08-24 14:22:02 +0200
committerPeter Eisentraut <peter@eisentraut.org>2023-08-24 14:22:46 +0200
commitd71e6055e45318b5cff2094025d641b954517fa9 (patch)
tree141da30386d1ab6d6594fbe398bda3d584201c18
parent3c09d115948cf33d398e9f3fe9c413cf6bbaa802 (diff)
downloadpostgresql-d71e6055e45318b5cff2094025d641b954517fa9.tar.gz
postgresql-d71e6055e45318b5cff2094025d641b954517fa9.zip
Fix lack of message pluralization
-rw-r--r--src/backend/replication/slot.c17
1 files changed, 12 insertions, 5 deletions
diff --git a/src/backend/replication/slot.c b/src/backend/replication/slot.c
index 1dc27264f61..bb09c4010f8 100644
--- a/src/backend/replication/slot.c
+++ b/src/backend/replication/slot.c
@@ -1263,11 +1263,18 @@ ReportSlotInvalidation(ReplicationSlotInvalidationCause cause,
switch (cause)
{
case RS_INVAL_WAL_REMOVED:
- hint = true;
- appendStringInfo(&err_detail, _("The slot's restart_lsn %X/%X exceeds the limit by %llu bytes."),
- LSN_FORMAT_ARGS(restart_lsn),
- (unsigned long long) (oldestLSN - restart_lsn));
- break;
+ {
+ unsigned long long ex = oldestLSN - restart_lsn;
+
+ hint = true;
+ appendStringInfo(&err_detail,
+ ngettext("The slot's restart_lsn %X/%X exceeds the limit by %llu byte.",
+ "The slot's restart_lsn %X/%X exceeds the limit by %llu bytes.",
+ ex),
+ LSN_FORMAT_ARGS(restart_lsn),
+ ex);
+ break;
+ }
case RS_INVAL_HORIZON:
appendStringInfo(&err_detail, _("The slot conflicted with xid horizon %u."),
snapshotConflictHorizon);