Re: [Bizgres-general] A Guide to Constraint Exclusion - Mailing list pgsql-hackers

From Greg Stark
Subject Re: [Bizgres-general] A Guide to Constraint Exclusion
Date
Msg-id 871x61xk1o.fsf@stark.xeocode.com
Whole thread Raw
In response to Re: [Bizgres-general] A Guide to Constraint Exclusion  (Hannu Krosing <hannu@tm.ee>)
Responses Re: [Bizgres-general] A Guide to Constraint Exclusion  (Simon Riggs <simon@2ndquadrant.com>)
List pgsql-hackers
Hannu Krosing <hannu@tm.ee> writes:

> > It is not yet possible to specify that an inheritance parent has no
> > rows, and, if so, should always be excluded from the query.
> 
> I think that a simple "CHECK(false)" constraint should be enough for
> this.

huh, that's clever.


> > CE checks are not made when the parent table is involved in a join.
> 
> Is this also the case where parent table is inside subquery and that
> subquery is involved in a join?

I assume this is a TODO and just not in your first batch of work? It seems
like a pretty important piece eventually. Are there any fundamental
difficulties with handling joins eventually? 


-- 
greg



pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Autovacuum loose ends
Next
From: Greg Stark
Date:
Subject: Re: [PATCHES] O_DIRECT for WAL writes