Re: fix crash with Python 3.11 - Mailing list pgsql-hackers

From Jacob Champion
Subject Re: fix crash with Python 3.11
Date
Msg-id 00ab8293f1caef335deea29ecb3dd86a2bae69c1.camel@vmware.com
Whole thread Raw
Responses Re: fix crash with Python 3.11
List pgsql-hackers
On Wed, 2021-12-22 at 09:24 +0100, Peter Eisentraut wrote:
> The fix is that we need to catch the PostgreSQL error and turn it into a 
> Python exception, like we do for other places where plpy.* methods call 
> into PostgreSQL internals.

Tested on Ubuntu 20.04, with 3.11.0a3 (built by hand) and 3.8.10 (from
the repositories). The tests pass, so LGTM. I agree that tidying up
some of the code duplication would be nice.

Thanks,
--Jacob

pgsql-hackers by date:

Previous
From: "Bossart, Nathan"
Date:
Subject: Re: Should we improve "PID XXXX is not a PostgreSQL server process" warning for pg_terminate_backend(<>)?
Next
From: Chris Cleveland
Date:
Subject: More data files / forks