Klugy fix for bug #2447: we can't expand a whole-row reference to NEW
authorTom Lane <tgl@sss.pgh.pa.us>
Tue, 23 May 2006 17:09:18 +0000 (17:09 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Tue, 23 May 2006 17:09:18 +0000 (17:09 +0000)
commitf966dccb2f702607d18c6ea991e3772f0d0415bd
tree126f9319b6e6b7d057360c27704eac62d0a8388a
parentf39fc4769ebac262fafa63ef029db971d3f11dc4
Klugy fix for bug #2447: we can't expand a whole-row reference to NEW
in a rule WHERE expression while inserting it into the original query,
because the 8.0 ResolveNew API is wrongly designed.  This is fixed in 8.1
but I'm disinclined to risk back-porting the changes.  Instead, just stop
the coredump and instead issue the same 'cannot handle whole-row reference'
message that 7.4 and before generated in this situation.
src/backend/rewrite/rewriteHandler.c
src/backend/rewrite/rewriteManip.c