Re: Remove an unnecessary errmsg_plural in dependency.c - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Remove an unnecessary errmsg_plural in dependency.c
Date
Msg-id 2967219.1648133358@sss.pgh.pa.us
Whole thread Raw
In response to Re: Remove an unnecessary errmsg_plural in dependency.c  (Alvaro Herrera <alvherre@alvh.no-ip.org>)
Responses Re: Remove an unnecessary errmsg_plural in dependency.c
List pgsql-hackers
Alvaro Herrera <alvherre@alvh.no-ip.org> writes:
> $ git grep 'Plural-Forms' src/backend/po/*.po
> ru.po:"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n"

Oh, interesting: if I'm reading that right, all three Russian
forms are reachable, even with the knowledge that n > 1.
(But isn't the last "&& n" test redundant?)

            regards, tom lane



pgsql-hackers by date:

Previous
From: Maxim Orlov
Date:
Subject: Re: XID formatting and SLRU refactorings (was: Add 64-bit XIDs into PostgreSQL 15)
Next
From: Tom Lane
Date:
Subject: Re: Documenting when to retry on serialization failure