Re: Queries joining views

From: "John D(dot) Burger" <john(at)mitre(dot)org>
To: Postgres General <pgsql-general(at)postgresql(dot)org>
Subject: Re: Queries joining views
Date: 2006-08-21 19:10:49
Message-ID: 600d0a283b1aba98eaf18bdc78d0129f@mitre.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Tom Lane wrote:

>> 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?

No surprise, I cannot reproduce this, especially since the DDL has
evolved since then. But you are almost certainly right, my "macro
expansion" must have done something more than simply dropping in the
view definition as is. Presumably something minor (to me) but a
show-stopper for the planner.

Sorry for the distraction. :(

- John D. Burger
MITRE

In response to

Browse pgsql-general by date

  From Date Subject
Next Message DelGurth 2006-08-21 20:57:52 Re: Queries joining views
Previous Message louis gonzales 2006-08-21 18:59:48 Re: cannot open pg_database