Re: Slow views - Mailing list pgsql-bugs

From Tom Lane
Subject Re: Slow views
Date
Msg-id 1767.1090040455@sss.pgh.pa.us
Whole thread Raw
In response to Slow views  (davidn-postgres@rebel.net.au)
Responses Re: Slow views  (David Newall <davidn-postgres@rebel.net.au>)
List pgsql-bugs
David Newall <davidn-postgres@rebel.net.au> writes:
> It's clearly an optimisation issue:

No, it's an outer-join-semantics issue.

> select * from a join b optimises differently to select * from a join
> (select * from b) as b

The above claim is provably false.  Now, if you throw in some more
tables and sprinkle in a LEFT JOIN instead of just JOIN here and there,
you can get different plans --- but the semantics are not necessarily
the same, either.

            regards, tom lane

pgsql-bugs by date:

Previous
From: Tom Lane
Date:
Subject: Re: Replace function BUG
Next
From: Tom Lane
Date:
Subject: Re: Cannot recreate DB scheme using pg_dump