Fix the code that adds regclass constants to a plan's list of relation OIDs
commit301ee8fece284ec8c16ebf799672f621c597a679
authortgl <tgl>
Tue, 17 Jun 2008 14:51:32 +0000 (17 14:51 +0000)
committertgl <tgl>
Tue, 17 Jun 2008 14:51:32 +0000 (17 14:51 +0000)
tree68f974e82de6124e92b179bb9bbc9038cf40e9bf
parent119235a4352fb76b2736e2a8e816a3b9c8732f92
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