pgsql: Use errcontext mechanism in PL/Python Error messages from - Mailing list pgsql-committers

From petere@postgresql.org (Peter Eisentraut)
Subject pgsql: Use errcontext mechanism in PL/Python Error messages from
Date
Msg-id 20090720080107.251E375331E@cvs.postgresql.org
Whole thread Raw
List pgsql-committers
Log Message:
-----------
Use errcontext mechanism in PL/Python

Error messages from PL/Python now always mention the function name in the
CONTEXT: field.  This also obsoletes the few places that tried to do the
same manually.

Regression test files are updated to work with Python 2.4-2.6.  I don't have
access to older versions right now.

Modified Files:
--------------
    pgsql/src/pl/plpython:
        plpython.c (r1.122 -> r1.123)
        (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/pl/plpython/plpython.c?r1=1.122&r2=1.123)
    pgsql/src/pl/plpython/expected:
        plpython_error.out (r1.5 -> r1.6)
        (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/pl/plpython/expected/plpython_error.out?r1=1.5&r2=1.6)
        plpython_error_3.out (r1.2 -> r1.3)
        (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/pl/plpython/expected/plpython_error_3.out?r1=1.2&r2=1.3)
        plpython_function.out (r1.12 -> r1.13)
        (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/pl/plpython/expected/plpython_function.out?r1=1.12&r2=1.13)
        plpython_test.out (r1.8 -> r1.9)
        (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/pl/plpython/expected/plpython_test.out?r1=1.8&r2=1.9)

pgsql-committers by date:

Previous
From: tgl@postgresql.org (Tom Lane)
Date:
Subject: pgsql: Remove unnecessary and version-sensitive dependence on the exact
Next
From: itagaki@pgfoundry.org (User Itagaki)
Date:
Subject: textsearch-ja - textsearch_senna: Fix a bug that initial_n_segments