Fix the code that adds regclass constants to a plan's list of relation OIDs
authorTom Lane <tgl@sss.pgh.pa.us>
Tue, 17 Jun 2008 14:51:38 +0000 (14:51 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Tue, 17 Jun 2008 14:51:38 +0000 (14:51 +0000)
commitc69c4ddc250b90119d19a44c21f0476093f5c9cd
treeab1ab82c2902b1d64c162daab0e45c16495ea0da
parentdbe4cbbcd734e1d15366b01871d0318732666419
Fix the code that adds regclass constants to a plan's list of relation OIDs
that it depends on for replan-forcing purposes.  We need to consider plain OID
constants too, because eval_const_expressions folds a RelabelType atop a Const
to just a Const.  This change could result in OID values that aren't really
for tables getting added to the dependency list, but the worst-case
consequence would be occasional useless replans.  Per report from Gabriele
Messineo.
src/backend/optimizer/plan/setrefs.c