Re: Queries joining views

Поиск
Список
Период
Сортировка
От John D. Burger
Тема Re: Queries joining views
Дата
Msg-id 600d0a283b1aba98eaf18bdc78d0129f@mitre.org
обсуждение исходный текст
Ответ на Re: Queries joining views  (Tom Lane <tgl@sss.pgh.pa.us>)
Список 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


В списке pgsql-general по дате отправления:

Предыдущее
От: louis gonzales
Дата:
Сообщение: Re: cannot open pg_database
Следующее
От: DelGurth
Дата:
Сообщение: Re: Queries joining views