Re: Queries joining views
От | John D. Burger |
---|---|
Тема | Re: Queries joining views |
Дата | |
Msg-id | b84a95d0ee93bd4777c5dcacccdca8b0@mitre.org обсуждение исходный текст |
Ответ на | Queries joining views (Alban Hertroys <alban@magproductions.nl>) |
Ответы |
Re: Queries joining views
|
Список | pgsql-general |
Alban Hertroys wrote: > We have a number of views that join tables, and we have queries that > join those views. Some relatively large tables are involved. > We added indexes that match our query constraints as much as possible, > and that does work if we explicitly query the tables with all the > involved joins, instead of the views. However, if we query the views, > the planner starts using a filter instead of the desired index... 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. - John D. Burger MITRE
В списке pgsql-general по дате отправления: