pgsql: Fix oversight in 8.0 modification of RestrictInfo data

From: tgl(at)svr1(dot)postgresql(dot)org (Tom Lane)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Fix oversight in 8.0 modification of RestrictInfo data
Date: 2005-10-11 16:44:40
Message-ID: 20051011164440.85603D70F5@svr1.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Log Message:
-----------
Fix oversight in 8.0 modification of RestrictInfo data structures.
A RestrictInfo representing an OR clause now contains two versions of
the contained expression, one with sub-RestrictInfos and one without.
clause_selectivity() should descend to the version with sub-RestrictInfos
so that it has a chance of caching its results for the OR's sub-clauses.
Failing to do so resulted in redundant planner effort.

Modified Files:
--------------
pgsql/src/backend/optimizer/path:
clausesel.c (r1.73 -> r1.74)
(http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/optimizer/path/clausesel.c.diff?r1=1.73&r2=1.74)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2005-10-11 16:45:01 pgsql: Fix oversight in 8.0 modification of RestrictInfo data
Previous Message User Petere 2005-10-11 07:47:11 psqlodbc - psqlodbc: Fix spelling of PostgreSQL.