pgsql: PL/Python: Report argument parsing errors using exceptions

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: PL/Python: Report argument parsing errors using exceptions
Date: 2016-07-03 02:58:17
Message-ID: E1bJXbt-0004tT-Pu@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

PL/Python: Report argument parsing errors using exceptions

Instead of calling PLy_elog() for reporting Python argument parsing
errors, generate appropriate exceptions. This matches the existing plpy
functions and is more consistent with the behavior of the Python
argument parsing routines.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/3a4a33ad49e7887b104a29323e4ea625d164a139

Modified Files
--------------
src/pl/plpython/expected/plpython_ereport.out | 28 +++++++++++++++++++--------
src/pl/plpython/plpy_plpymodule.c | 23 +++++++++++++++++-----
2 files changed, 38 insertions(+), 13 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Kevin Grittner 2016-07-03 13:32:46 Re: [COMMITTERS] pgsql: Avoid extra locks in GetSnapshotData if old_snapshot_threshold <
Previous Message Robert Haas 2016-07-02 22:10:02 Re: [COMMITTERS] pgsql: Avoid extra locks in GetSnapshotData if old_snapshot_threshold <