Elein Mustain <elein(at)tulip(dot)norcov(dot)com> writes:
> The problem
> is local to plpython and not plpgsql because only
> plpython creates storage that can be accessed between
> function calls.
When I looked at it, I thought that it could be solved trivially by
instantiating a separate Python object for each per-relation version
of a trigger function. But not being a Python user, I didn't try
to fix it because I couldn't test it very well.
regards, tom lane