PL/Python: Fix return in the middle of PG_TRY() block.

From: Xing Guo <higuoxing(at)gmail(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Subject: PL/Python: Fix return in the middle of PG_TRY() block.
Date: 2023-01-12 15:19:29
Message-ID: CACpMh+CMsGMRKFzFMm3bYTzQmMU5nfEEoEDU2apJcc4hid36AQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi hackers,

I was running static analyser against PostgreSQL and found there're 2
return statements in PL/Python module which is not safe. Patch is
attached.

--
Best Regards,
Xing

Attachment Content-Type Size
dont-return-in-middle-of-PG_TRY_v1.patch text/x-patch 989 bytes

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Robert Haas 2023-01-12 15:21:32 Re: allowing for control over SET ROLE
Previous Message Robert Haas 2023-01-12 15:11:46 Re: pgsql: Add new GUC createrole_self_grant.