]> granicus.if.org Git - postgresql/commit
Fix plpython's overoptimistic caching of information about the rowtype of
authorTom Lane <tgl@sss.pgh.pa.us>
Wed, 2 Jan 2008 03:10:27 +0000 (03:10 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Wed, 2 Jan 2008 03:10:27 +0000 (03:10 +0000)
commitbaecbb9165c96e395e1d1fd0bfd68c7cb526c686
tree363a8a5c8c1f7fed5b54b6b64c3d35d35aed9bc2
parent14b5eaa236e914af236f30bde6a52edb18c5da9f
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.)
src/pl/plpython/plpython.c