mirror of
https://github.com/postgres/postgres.git
synced 2025-04-27 22:56:53 +03:00
Fix lack of message pluralization
This commit is contained in:
parent
4cdcff4d93
commit
ce18252d0b
@ -1263,11 +1263,18 @@ ReportSlotInvalidation(ReplicationSlotInvalidationCause cause,
|
|||||||
switch (cause)
|
switch (cause)
|
||||||
{
|
{
|
||||||
case RS_INVAL_WAL_REMOVED:
|
case RS_INVAL_WAL_REMOVED:
|
||||||
|
{
|
||||||
|
unsigned long long ex = oldestLSN - restart_lsn;
|
||||||
|
|
||||||
hint = true;
|
hint = true;
|
||||||
appendStringInfo(&err_detail, _("The slot's restart_lsn %X/%X exceeds the limit by %llu bytes."),
|
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),
|
LSN_FORMAT_ARGS(restart_lsn),
|
||||||
(unsigned long long) (oldestLSN - restart_lsn));
|
ex);
|
||||||
break;
|
break;
|
||||||
|
}
|
||||||
case RS_INVAL_HORIZON:
|
case RS_INVAL_HORIZON:
|
||||||
appendStringInfo(&err_detail, _("The slot conflicted with xid horizon %u."),
|
appendStringInfo(&err_detail, _("The slot conflicted with xid horizon %u."),
|
||||||
snapshotConflictHorizon);
|
snapshotConflictHorizon);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user