Re: Queries joining views

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "John D(dot) Burger" <john(at)mitre(dot)org>
Cc: Postgres General <pgsql-general(at)postgresql(dot)org>
Subject: Re: Queries joining views
Date: 2006-08-21 17:33:22
Message-ID: 28484.1156181602@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

"John D. Burger" <john(at)mitre(dot)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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Jeff Davis 2006-08-21 17:43:34 setting the value returned by PQcmdTuples
Previous Message John D. Burger 2006-08-21 17:06:21 Re: Queries joining views