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 don't have shared_preload_libraries as Heikki pointed, because in the next week we need to be able to interrupt plpython functions.
But, I would REALLY LOVE to implement a proper solution for this case, making hooks in Postgres for extensions like Heikki propose or any other proposal. I'm really enjoying to work in the Postgres internals
and at least I'd like to finish this PATCH.
Any suggestion on what do I need to read, similar cases, advices, etc?
Again thank you very much for your time and you invaluable help.
Mario