Re: BUG #6426: Complex query runs 10 times longer with "LIMIT 20"

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: BUG #6426: Complex query runs 10 times longer with "LIMIT 20"
Дата
Msg-id 24544.1328132915@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: BUG #6426: Complex query runs 10 times longer with "LIMIT 20"  (Andrew Schetinin <aschetinin@gmail.com>)
Ответы Re: BUG #6426: Complex query runs 10 times longer with "LIMIT 20"  (Andrew Schetinin <aschetinin@gmail.com>)
Список pgsql-bugs
Andrew Schetinin <aschetinin@gmail.com> writes:
> In my specific case, what I've seen from the query execution plans, is that
> without LIMIT the query uses Hash Joins, but once I add LIMIT, it starts
> using Nested Loop Joins almost everywhere.

Usually, that's an appropriate change for a small LIMIT.  It's certainly
not a priori evidence of a planner bug.

If you want useful comments about this, please review
http://wiki.postgresql.org/wiki/Slow_Query_Questions
about how to provide an adequate description of your problem.

            regards, tom lane

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: BUG #6425: Bus error in slot_deform_tuple
Следующее
От: "bdmytrak@eranet.pl"
Дата:
Сообщение: Re: BUG #6421: Revoke column level privilage