pgsql: Fix Unicode support in PL/Python Check calls of - Mailing list pgsql-committers

From petere@postgresql.org (Peter Eisentraut)
Subject pgsql: Fix Unicode support in PL/Python Check calls of
Date
Msg-id 20090913220706.705A5753FB7@cvs.postgresql.org
Whole thread Raw
List pgsql-committers
Log Message:
-----------
Fix Unicode support in PL/Python

Check calls of PyUnicode_AsEncodedString() for NULL return, probably
because the encoding name is not known.  Add special treatment for
SQL_ASCII, which Python definitely does not know.

Since using SQL_ASCII produces errors in the regression tests when
non-ASCII characters are involved, we have to put back various regression
test result variants.

Modified Files:
--------------
    pgsql/src/pl/plpython:
        plpython.c (r1.129 -> r1.130)
        (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/pl/plpython/plpython.c?r1=1.129&r2=1.130)
    pgsql/src/pl/plpython/expected:
        README (r1.2 -> r1.3)
        (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/pl/plpython/expected/README?r1=1.2&r2=1.3)

Added Files:
-----------
    pgsql/src/pl/plpython/expected:
        plpython_unicode_2.out (r1.4)

(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/pl/plpython/expected/plpython_unicode_2.out?rev=1.4&content-type=text/x-cvsweb-markup)
        plpython_unicode_3.out (r1.4)

(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/pl/plpython/expected/plpython_unicode_3.out?rev=1.4&content-type=text/x-cvsweb-markup)
        plpython_unicode_5.out (r1.1)

(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/pl/plpython/expected/plpython_unicode_5.out?rev=1.1&content-type=text/x-cvsweb-markup)

pgsql-committers by date:

Previous
From: petere@postgresql.org (Peter Eisentraut)
Date:
Subject: pgsql: Document that autovacuum_max_workers can only be set at server
Next
From: tgl@postgresql.org (Tom Lane)
Date:
Subject: pgsql: Write psql's ~/.psql_history file using history_truncate_file()