Re: Really dumb planner decision

Поиск
Список
Период
Сортировка
Искать
От
Robert Haas
Тема
Re: Really dumb planner decision
Дата
Msg-id
603c8f070904160442l361465b7i6c3a168956eb5c24@mail.gmail.com
Ответ на
Список
Дерево обсуждения
Really dumb planner decision Matthew Wakeling <matthew@flymine.org>
Re: Really dumb planner decision Grzegorz Jaśkiewicz <gryzman@gmail.com>
Re: Really dumb planner decision Matthew Wakeling <matthew@flymine.org>
Re: Really dumb planner decision Robert Haas <robertmhaas@gmail.com>
Re: Really dumb planner decision Matthew Wakeling <matthew@flymine.org>
Re: Really dumb planner decision Merlin Moncure <mmoncure@gmail.com>
Re: Really dumb planner decision Tom Lane <tgl@sss.pgh.pa.us>
Re: Really dumb planner decision "Kevin Grittner" <Kevin.Grittner@wicourts.gov>
Re: Really dumb planner decision Merlin Moncure <mmoncure@gmail.com>
Re: Really dumb planner decision Robert Haas <robertmhaas@gmail.com>
Re: Really dumb planner decision Matthew Wakeling <matthew@flymine.org>
Re: Really dumb planner decision Tom Lane <tgl@sss.pgh.pa.us>
Re: Really dumb planner decision Grzegorz Jaśkiewicz <gryzman@gmail.com>
Re: Really dumb planner decision Matthew Wakeling <matthew@flymine.org>
2009/4/16 Matthew Wakeling :
> On Thu, 16 Apr 2009, Grzegorz Jaśkiewicz wrote:
>>
>> On Thu, Apr 16, 2009 at 11:37 AM, Matthew Wakeling 
>> wrote:
>>>
>>> I have a query that is executed really badly by Postgres. It is a nine
>>> table
>>> join, where two of the tables are represented in a view. If I remove one
>>> of
>>> the tables from the query, then the query runs very quickly using a
>>> completely different plan.
>>
>> And what happens if you execute that view alone, with WHERE .. just
>> like it would be a part of the whole query? ((id = 1267676))
>
> Really quick, just like the query that works in my email.

What happens if you change join_collapse_limit and from_collapse_limit
to some huge number?

http://www.postgresql.org/docs/current/static/runtime-config-query.html#GUC-FROM-COLLAPSE-LIMIT

...Robert
В списке pgsql-performance по дате отправления
От: Matthew Wakeling
Дата:
От: Matthew Wakeling
Дата:
FAQ