pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Heikki Linnakangas <heikki.linnakangas@iki.fi>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Tidy up error reporting when converting PL/Python arrays.
Date: Fri, 02 Oct 2020 15:33:19 +0000
Message-ID: <E1kON3f-0003fN-Aa@gemulon.postgresql.org> (raw)

Tidy up error reporting when converting PL/Python arrays.

Use PLy_elog() only when a call to a Python C API function failed, and
ereport() for other errors. Add an error code to the "wrong length of
inner sequence" ereport().

Reviewed-by: Daniel Gustafsson
Discussion: https://www.postgresql.org/message-id/B8B72889-D6D7-48FF-B782-D670A6CA4D37%40yesql.se

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/26b8361518c393c2f152e9e3837daf605b34bef8

Modified Files
--------------
src/pl/plpython/plpy_typeio.c | 20 +++++++++++++++-----
1 file changed, 15 insertions(+), 5 deletions(-)



Message-ID: <E1kON3f-0003fN-Aa@gemulon.postgresql.org>
Permalink:  ../E1kON3f-0003fN-Aa@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1kON3f-0003fN-Aa@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: heikki.linnakangas@iki.fi
  Subject: Re: pgsql: Tidy up error reporting when converting PL/Python arrays.
  In-Reply-To: <E1kON3f-0003fN-Aa@gemulon.postgresql.org>
  References: <E1kON3f-0003fN-Aa@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox