Re: PL/Python: Fix return in the middle of PG_TRY() block. - Mailing list pgsql-hackers

From Nathan Bossart
Subject Re: PL/Python: Fix return in the middle of PG_TRY() block.
Date
Msg-id 20230503202116.GA2110623@nathanxps13
Whole thread Raw
In response to Re: PL/Python: Fix return in the middle of PG_TRY() block.  (Nathan Bossart <nathandbossart@gmail.com>)
Responses Re: PL/Python: Fix return in the middle of PG_TRY() block.
List pgsql-hackers
Here's a new version of the patch.  Besides adding comments and a commit
message, I made sure to decrement the reference count for pltargs in the
PG_CATCH block (which means that pltargs likely needs to be volatile).  I'm
not too wild about moving the chunk of code for pltargs like this, but I
haven't thought of a better option.  We could error instead of returning
NULL, but IIUC that would go against d0aa965's stated purpose.

-- 
Nathan Bossart
Amazon Web Services: https://aws.amazon.com

Attachment

pgsql-hackers by date:

Previous
From: Andrew Dunstan
Date:
Subject: Re: issue with meson builds on msys2
Next
From: Tom Lane
Date:
Subject: Re: PL/Python: Fix return in the middle of PG_TRY() block.