Re: [Bizgres-general] A Guide to Constraint Exclusion (

From: "Luke Lonergan" <llonergan(at)greenplum(dot)com>
To: "Simon Riggs" <simon(at)2ndquadrant(dot)com>
Cc: "bizgres-general" <bizgres-general(at)pgfoundry(dot)org>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: [Bizgres-general] A Guide to Constraint Exclusion (
Date: 2005-07-14 22:16:18
Message-ID: BEFC3242.8B62%llonergan@greenplum.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Hannu Krosing 2005-07-14 22:20:42 Re: [Bizgres-general] A Guide to Constraint Exclusion
Previous Message Hannu Krosing 2005-07-14 22:13:05 Re: [Bizgres-general] A Guide to Constraint Exclusion