Fix the code that adds regclass constants to a plan's list of relation OIDs
authorTom Lane <[email protected]>
Tue, 17 Jun 2008 14:51:38 +0000 (14:51 +0000)
committerTom Lane <[email protected]>
Tue, 17 Jun 2008 14:51:38 +0000 (14:51 +0000)
commit01860337c371baea338427c53dacc54fccf7c6df
tree5edceb53b9c31f981e7880075565768f8235339c
parentc9bbf9265533085b0f1e748efe51056ca0c3dca9
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