[HACKERS] Fix for segfault in plpython's exception handling

2016-12-09 Thread Rafa de la Torre
into master? maybe 9.5 and 9.6 as well? Thanks! -- Rafa de la Torre rto...@carto.com From e95649d8d173f483d67d9338a9089947a7667e5f Mon Sep 17 00:00:00 2001 From: Rafa de la Torre Date: Wed, 23 Nov 2016 10:50:40 +0100 Subject: [PATCH] Fix segfault in plpython's exception handling When a subt

Re: [HACKERS] Fix for segfault in plpython's exception handling

2016-12-12 Thread Rafa de la Torre
Thank you! Glad to see that the report was useful. On Fri, Dec 9, 2016 at 9:33 PM, Tom Lane wrote: > I wrote: > > Rafa de la Torre writes: > >> exc = PyErr_NewException(exception_map[i].name, base, > dict); > >> +Py_INCREF(exc); > >&

Re: [HACKERS] Fix for segfault in plpython's exception handling

2016-12-12 Thread Rafa de la Torre
For the record: I tested the patch by Tom Lane in our setup (python 2.7.3-0ubuntu3.8) and works like a charm. https://git.postgresql.org/gitweb/?p=postgresql.git;a=commit;h=9cda81f0056ca488dbd6cded64db1238aed816b2 Also in 9.5 and 9.6 series. My request in commitfest queue can be closed. Cheers!