Re: signal handling in plpython - Mailing list pgsql-hackers

From Tom Lane
Subject Re: signal handling in plpython
Date
Msg-id 9720.1476451332@sss.pgh.pa.us
Whole thread Raw
In response to Re: signal handling in plpython  (Heikki Linnakangas <hlinnaka@iki.fi>)
Responses Re: signal handling in plpython
Re: signal handling in plpython
List pgsql-hackers
Heikki Linnakangas <hlinnaka@iki.fi> writes:
> On 10/14/2016 04:05 PM, Tom Lane wrote:
>> I wrote:
>>> Py_AddPendingCall is safe to call from a signal handler?  That would
>>> be ... quite remarkable.

> Yes, I believe it is.

> https://github.com/python/cpython/blob/4b71e63b0616aa2a44c9b13675e4c8e3c0157481/Python/ceval.c#L422

I don't know whether to laugh or cry, but that code is a joke.  Just
silently fail if you can't get the lock?
        regards, tom lane



pgsql-hackers by date:

Previous
From: Heikki Linnakangas
Date:
Subject: Re: signal handling in plpython
Next
From: Amit Kapila
Date:
Subject: Re: Question about behavior of snapshot too old feature