Re: [HACKERS] signal handling in plpython

2016-10-14 Thread Mario De Frutos Dieguez
Hi! Following your ideas I've made a test [here ], only in plpython and seems to works pretty well. I've to make more tests and execute the postgres regress too. This ad-hoc solution could be enough for now, we d

Re: [HACKERS] signal handling in plpython

2016-10-14 Thread Mario De Frutos Dieguez
b2cdb872b5b5bd65606f5bce334d2477b2afc5/postgis/postgis_module.c#L128> and have multiple signal handlers: one for the Postgres using StatementCancelHandler and one for the python code. How does it sound? Thank you again for your time :) 2016-10-14 12:01 GMT+02:00 Heikki Linnakangas : > On

[HACKERS] signal handling in plpython

2016-10-13 Thread Mario De Frutos Dieguez
Hello everyone :). First of all, I want to introduce me to this list. My name is Mario de Frutos and I work at CARTO :) I come here asking for some advice/help because we're facing some unexpected behavior when we want to interrupt functions doing CPU intensive operations in plpython. Our proble