From: | Peter Eisentraut <peter_e(at)gmx(dot)net> |
---|---|
To: | pgsql-committers(at)postgresql(dot)org |
Subject: | pgsql: Correctly add exceptions to the plpy module for Python 3 |
Date: | 2011-01-21 21:48:40 |
Message-ID: | E1PgOqW-0003kY-Cu@gemulon.postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers |
Correctly add exceptions to the plpy module for Python 3
The way the exception types where added to the module was wrong for
Python 3. Exception classes were not actually available from plpy.
Fix that by factoring out code that is responsible for defining new
Python exceptions and make it work with Python 3. New regression test
makes sure the plpy module has the expected contents.
Jan Urbanśki, slightly revised by me
Branch
------
master
Details
-------
http://git.postgresql.org/gitweb?p=postgresql.git;a=commitdiff;h=4609caf3645ae975724af1f7f57f831e516cf220
Modified Files
--------------
src/pl/plpython/expected/plpython_test.out | 13 +++++++++
src/pl/plpython/plpython.c | 41 ++++++++++++++++++++-------
src/pl/plpython/sql/plpython_test.sql | 11 +++++++
3 files changed, 54 insertions(+), 11 deletions(-)
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2011-01-21 23:43:10 | pgsql: Fix broken markup, also minor copy-editing. |
Previous Message | Tom Lane | 2011-01-21 21:23:01 | pgsql: Fix pg_restore to do the right thing when escaping large objects |