Re: Another planner oddity - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Another planner oddity
Date
Msg-id 2123.1004802780@sss.pgh.pa.us
Whole thread Raw
In response to Another planner oddity  (Philip Warner <pjw@rhyme.com.au>)
Responses Re: Another planner oddity
List pgsql-hackers
Philip Warner <pjw@rhyme.com.au> writes:
> explain select 
>     (select r.n from r where r.p=tv.p), -- no reference to gn!
>     sum(x)
> From
>     tv

What's your point?  We can't omit the join to g, as that would change
the set of returned rows.  (In general, anyway; in this case the
dependency is that multiple matches in g would change sum(x) for
any given r.n.)
        regards, tom lane


pgsql-hackers by date:

Previous
From: Fábio Santana
Date:
Subject: LISTENING THE PORT
Next
From: Bruce Momjian
Date:
Subject: Re: LISTENING THE PORT