Thread: pgsql: Install a more robust solution for the problem of infinite

pgsql: Install a more robust solution for the problem of infinite

From
tgl@postgresql.org (Tom Lane)
Date:
Log Message:
-----------
Install a more robust solution for the problem of infinite error-processing
recursion when we are unable to convert a localized error message to the
client's encoding.  We've been over this ground before, but as reported by
Ibrar Ahmed, it still didn't work in the case of conversion failures for
the conversion-failure message itself :-(.  Fix by installing a "circuit
breaker" that disables attempts to localize this message once we get into
recursion trouble.

Patch all supported branches, because it is in fact broken in all of them;
though I had to add some missing translations to the older branches in
order to expose the failure in the particular test case I was using.

Tags:
----
REL8_3_STABLE

Modified Files:
--------------
    pgsql/doc/src/sgml:
        sources.sgml (r2.29 -> r2.29.2.1)
        (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/doc/src/sgml/sources.sgml?r1=2.29&r2=2.29.2.1)
    pgsql/src/backend:
        nls.mk (r1.21.2.1 -> r1.21.2.2)
        (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/nls.mk?r1=1.21.2.1&r2=1.21.2.2)
    pgsql/src/backend/utils/error:
        elog.c (r1.201.2.1 -> r1.201.2.2)
        (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/utils/error/elog.c?r1=1.201.2.1&r2=1.201.2.2)
    pgsql/src/backend/utils/mb:
        wchar.c (r1.66 -> r1.66.2.1)
        (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/utils/mb/wchar.c?r1=1.66&r2=1.66.2.1)
    pgsql/src/include/utils:
        elog.h (r1.90.2.1 -> r1.90.2.2)
        (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/include/utils/elog.h?r1=1.90.2.1&r2=1.90.2.2)