Re: [Bizgres-general] A Guide to Constraint Exclusion (
Luke Lonergan <llonergan@greenplum.com>
From: "Luke Lonergan" <llonergan@greenplum.com>
To: "Simon Riggs" <simon@2ndquadrant.com>
Cc: "bizgres-general" <bizgres-general@pgfoundry.org>, pgsql-hackers@postgresql.org
Date: 2005-07-14T22:16:18Z
Lists: pgsql-hackers
Simon,
> SELECT
> FROM Fact, Dimension
> WHERE Fact.Key = Dimension.Key
> AND Dimension.DescriptiveField = 'Blah'
So, what happens with this:
SELECT
FROM Fact, Dimension
WHERE Fact.Key = Dimension.Key
AND Fact.part = 100;
With Fact defined with 3 partitions:
CHECK(Part BETWEEN 1 AND 1000)
CHECK(Part BETWEEN 1001 AND 2000)
CHECK(Part BETWEEN 2001 AND 3000)
Will the 2nd and 3rd partitions be eliminated?
- Luke