Re: Some queries starting to hang

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Some queries starting to hang
Дата
Msg-id 23270.1149628274@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Some queries starting to hang  (Scott Marlowe <smarlowe@g2switchworks.com>)
Ответы Re: Some queries starting to hang  (Scott Marlowe <smarlowe@g2switchworks.com>)
Список pgsql-performance
Scott Marlowe <smarlowe@g2switchworks.com> writes:
> The cost of not aborting on the first sort is that you may never see
> what the part of the plan is that's killing your query, since you never
> get the actual plan.

Well, you can get the plan without waiting a long time; that's what
plain EXPLAIN is for.  But I still disagree with the premise that you
can extrapolate anything very useful from an unfinished EXPLAIN ANALYZE
run.  As an example, if the plan involves setup steps such as sorting or
loading a hashtable, cancelling after a minute might make it look like
the setup step is the big problem, distracting you from the possibility
that the *rest* of the plan would take weeks to run if you ever got to
it.

            regards, tom lane

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

Предыдущее
От: Scott Marlowe
Дата:
Сообщение: Re: Some queries starting to hang
Следующее
От: Scott Marlowe
Дата:
Сообщение: Re: Some queries starting to hang