Re: A Guide to Constraint Exclusion (Partitioning) - Mailing list pgsql-hackers

From Tom Lane
Subject Re: A Guide to Constraint Exclusion (Partitioning)
Date
Msg-id 5068.1122153181@sss.pgh.pa.us
Whole thread Raw
In response to Re: A Guide to Constraint Exclusion (Partitioning)  (Greg Stark <gsstark@mit.edu>)
Responses Re: A Guide to Constraint Exclusion (Partitioning)  (Greg Stark <gsstark@mit.edu>)
List pgsql-hackers
Greg Stark <gsstark@mit.edu> writes:
> That was the detail I was missing. I'm surprised because I actually tested
> this before I sent the message and saw a plan like this with a single
> sequential scan node despite the three child tables:

> staging=> explain select * from _test where a=1;
>                       QUERY PLAN                      
> ------------------------------------------------------
>  Seq Scan on _test  (cost=0.00..22.50 rows=5 width=4)
>    Filter: (a = 1)
> (2 rows)

Uh, maybe you have sql_inheritance turned off?  Every version I can
remember would show you a pretty explicit Append plan for inheritance
scans...
        regards, tom lane


pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: For review: Server instrumentation patch
Next
From: Andrew Dunstan
Date:
Subject: Re: [PATCHES] Patch to fix plpython on OS X