Re: Some queries starting to hang

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Some queries starting to hang
Дата
Msg-id 17426.1149606369@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Some queries starting to hang  (Simon Riggs <simon@2ndquadrant.com>)
Ответы Re: Some queries starting to hang  ("Jim C. Nasby" <jnasby@pervasive.com>)
Re: Some queries starting to hang  (Andrew Sullivan <ajs@crankycanuck.ca>)
Re: Some queries starting to hang  ("Craig A. James" <cjames@modgraph-usa.com>)
Список pgsql-performance
Simon Riggs <simon@2ndquadrant.com> writes:
> You mentioned it would be good if the OP had delivered an EXPLAIN
> ANALYZE; I agree(d). The lack of EXPLAIN ANALYZE is frequently because
> you can't get them to run to completion - more so when the query you
> wish to analyze doesn't appear to complete either.

Well, he could have shown EXPLAIN ANALYZE for the server that was
managing to run the query in a reasonable amount of time.

> The idea I just had was: why do we need EXPLAIN ANALYZE to run to
> completion? In severe cases like this thread, we might be able to
> discover the root cause by a *partial* execution of the plan, as long as
> it was properly instrumented. That way, the OP might have been able to
> discover the root cause himself...

I don't think that helps, as it just replaces one uncertainty by
another: how far did the EXPLAIN really get towards completion of the
plan?  You still don't have any hard data.

            regards, tom lane

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

Предыдущее
От: "Jim C. Nasby"
Дата:
Сообщение: Re: Some queries starting to hang
Следующее
От: "Jim C. Nasby"
Дата:
Сообщение: Re: Some queries starting to hang