pgsql: Fix the code that adds regclass constants to a plan's list of

From: tgl(at)postgresql(dot)org (Tom Lane)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Fix the code that adds regclass constants to a plan's list of
Date: 2008-06-17 14:51:38
Message-ID: 20080617145138.7C9F3754595@cvs.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Log Message:
-----------
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.

Tags:
----
REL8_3_STABLE

Modified Files:
--------------
pgsql/src/backend/optimizer/plan:
setrefs.c (r1.141 -> r1.141.2.1)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/optimizer/plan/setrefs.c?r1=1.141&r2=1.141.2.1)

Browse pgsql-committers by date

  From Date Subject
Next Message User C2main 2008-06-17 15:20:53 muninpgplugins - muninpgplugins: minor update to README
Previous Message Tom Lane 2008-06-17 14:51:32 pgsql: Fix the code that adds regclass constants to a plan's list of