Fix plpython's overoptimistic caching of information about the rowtype of

Tom Lane <tgl@sss.pgh.pa.us>

Commit: 65d1c2dc336130cd0f633ebd07436afd57992c3a
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2008-01-02T03:10:34Z
Releases: 8.2.6
Fix plpython's overoptimistic caching of information about the rowtype of
a trigger's target table.  The rowtype could change from one call to the
next, so cope in such cases, while avoiding doing repetitive catalog lookups.
Per bug #3847 from Mark Reid.

Backpatch to 8.2.x.  Likely this fix should go further back, but I can't test
it because I no longer have a machine with a pre-2.5 Python installation.
(Maybe we should rethink that idea about not supporting Python 2.5 in the
older branches.)

Files

PathChange+/−
src/pl/plpython/plpython.c modified +63 −30