Re: Getting query plan alternatives from query planner?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Getting query plan alternatives from query planner?
Дата
Msg-id 15606.1395335330@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Getting query plan alternatives from query planner?  (Stefan Keller <sfkeller@gmail.com>)
Ответы Re: Getting query plan alternatives from query planner?  (Stefan Keller <sfkeller@gmail.com>)
Список pgsql-performance
Stefan Keller <sfkeller@gmail.com> writes:
> I'd like to know from the query planner which query plan alternatives
> have been generated and rejected. Is this possible?

No, not really.  People have occasionally hacked the planner to print
rejected paths before they're discarded, but there's no convenient way
to do anything except send the data to the postmaster log, which isn't
all that convenient.  A bigger problem is that people who are asking
for this typically imagine that the planner generates complete plans
before rejecting them; which it does not.  Path alternatives are rejected
whenever possible before moving up to the next join level, so that what
we have rejected is actually just a plan fragment in most cases.

            regards, tom lane


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

Предыдущее
От: Jean-Max Reymond
Дата:
Сообщение: Performance of UNION vs IN
Следующее
От: Torsten Förtsch
Дата:
Сообщение: Re: Performance of UNION vs IN