Scenario:
- I have a python function on disk somewhere.
- I compile a plpythonu function in pg server, which is referencing that python function from step 1 on disk.
- I change something in python function (from step 1).
- If I compile plpythonu function (from step 2), change done in step 3 does not take effect when calling from pg server.
Example of such functions can be seen in my other question: Python function hangs when called from within sql function
My assumptions (what this seems like to me):
- PG server stores both the python function (step 1) code and plpythonu code somewhere at first compilation, where ?
- It does not check again the linked function (step 1) when recompiling (step 4) the plpythonu function. Can this behavior be changed or affected somehow ?
If these assumptions are wrong, please also correct me and explain. Or even point me to documentation where this can be found, I have not succeeded in finding it yet.