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_1_STABLE Modified Files: -------------- pgsql/doc/src/sgml: sources.sgml (r2.16 -> r2.16.6.1) (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/doc/src/sgml/sources.sgml?r1=2.16&r2=2.16.6.1) pgsql/src/backend: nls.mk (r1.20 -> r1.20.2.1) (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/nls.mk?r1=1.20&r2=1.20.2.1) pgsql/src/backend/utils/error: elog.c (r1.167.2.6 -> r1.167.2.7) (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/utils/error/elog.c?r1=1.167.2.6&r2=1.167.2.7) pgsql/src/backend/utils/mb: wchar.c (r1.47.2.6 -> r1.47.2.7) (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/utils/mb/wchar.c?r1=1.47.2.6&r2=1.47.2.7) pgsql/src/include/utils: elog.h (r1.81 -> r1.81.2.1) (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/include/utils/elog.h?r1=1.81&r2=1.81.2.1)