Re: Queries joining views - Mailing list pgsql-general

From Tom Lane
Subject Re: Queries joining views
Date
Msg-id 28484.1156181602@sss.pgh.pa.us
Whole thread Raw
In response to Re: Queries joining views  ("John D. Burger" <john@mitre.org>)
Responses Re: Queries joining views  ("John D. Burger" <john@mitre.org>)
List pgsql-general
"John D. Burger" <john@mitre.org> writes:
> Anecdotally, I had a situation recently where I got different plans
> depending on whether I queried a join of a view against itself, or
> "macro expanded" the view by hand.  I was =very= surprised at this.

Me too, at least if you didn't do any hand optimization but just stuck
the view definition in as a sub-select.  Can you provide a reproducible
case?

            regards, tom lane

pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: Queries joining views
Next
From: louis gonzales
Date:
Subject: Re: cannot open pg_database