[HACKERS] Consistently catch errors from Python _New() functions - Mailing list pgsql-hackers

From Peter Eisentraut
Subject [HACKERS] Consistently catch errors from Python _New() functions
Date
Msg-id 72ea0318-3d5b-e46f-d5cc-a030567155ec@2ndquadrant.com
Whole thread Raw
Responses Re: [HACKERS] Consistently catch errors from Python _New() functions
List pgsql-hackers
While reviewing some unrelated code, I noticed that we are handling
error conditions from Python API functions such as PyList_New() and
PyDict_New() in pretty random ways or not at all.  Here is a patch to
fix that.

Arguably, this is a bug fix, but I'm not sure whether it's worth
meddling with this in the back branches.  Maybe only the places where
the errors are not caught at all should be fixed there.  Comments welcome.

-- 
Peter Eisentraut              http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services

-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers

Attachment

pgsql-hackers by date:

Previous
From: Arthur Zakirov
Date:
Subject: Re: [HACKERS] [PATCH] Generic type subscripting
Next
From: Peter Eisentraut
Date:
Subject: [HACKERS] postgres_fdw: Add support for INSERT OVERRIDING clause