Re: Constraint Exclusion + Joins?

From: Simon Riggs <simon(at)2ndquadrant(dot)com>
To: Brandon Black <blblack(at)gmail(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Constraint Exclusion + Joins?
Date: 2006-05-02 10:10:34
Message-ID: 1146564634.9599.340.camel@localhost.localdomain
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Tue, 2006-05-02 at 00:27 -0500, Brandon Black wrote:

> I tried things like the above with small test data sets against cvs
> just now on my home machine, and constraint exclusion doesn't seem to
> apply here (even if all of the joined jstuff rows have ids which only
> match the constraint for basic_sub3, all basic_subX's seem to get
> scanned, as is the case I'm seeing in my real code against 8.1.3). Is
> this sort of dynamic constraint exclusion on the radar?

(You should use life size data for your testing.)

If you think the plan you get can be improved, post the EXPLAIN (maybe
EXPLAIN ANALYZE) and say how you think it can be improved. It's a lot
easier to consider concrete requirements.

--
Simon Riggs
EnterpriseDB http://www.enterprisedb.com

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Simon Riggs 2006-05-02 10:34:34 Re: Automatic free space map filling
Previous Message Simon Riggs 2006-05-02 09:52:38 Re: XLOG_BLCKSZ vs. wal_buffers table