• Tom Lane's avatar
    Improve the recently-added support for properly pluralized error messages · 76d4abf2
    Tom Lane authored
    by extending the ereport() API to cater for pluralization directly.  This
    is better than the original method of calling ngettext outside the elog.c
    code because (1) it avoids double translation, which wastes cycles and in
    the worst case could give a wrong result; and (2) it avoids having to use
    a different coding method in PL code than in the core backend.  The
    client-side uses of ngettext are not touched since neither of these concerns
    is very pressing in the client environment.  Per my proposal of yesterday.
    76d4abf2
elog.c 68.7 KB