Re: hanging select processes

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: hanging select processes
Дата
Msg-id 27147.1090852005@sss.pgh.pa.us
обсуждение исходный текст
Ответ на hanging select processes  (John Rogers <John@delosis.com>)
Список pgsql-odbc
John Rogers <John@delosis.com> writes:
> As for the last comment you made though, I've had a look at the load on
> the server during this simulated Access crash, and it DOES seem to me
> that the thread goes out of control afterwards. Setting up complex query
> at the access end which will repeadedly select the same view from
> postgres results in a relatively low load on the backend; but killing
> access during this same query causes the SELECT process to ramp itself
> up to 100% over the time course of a couple of seconds.

Hmm.  With no network delays for delivery of output data, you could
expect the SELECT to become CPU-bound; it would just be sitting there
running the query as fast as it could.  So I'm not sure that the above-
described behavior is a problem.  However, if what is happening is that
it's getting stuck in an infinite loop trying and failing to output
data, then that's definitely bad.  So I guess the question is: does the
backend terminate after about the same number of CPU seconds that it
would ordinarily take to process the query?  Or does it seem to run
forever until killed?  Also, can you stop it with "kill -INT" when it's
in this state?

            regards, tom lane

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

Предыдущее
От: "Dave Page"
Дата:
Сообщение: Re: problem with CVS version
Следующее
От: "Roderick A. Anderson"
Дата:
Сообщение: Re: Linux ODBC (MS SQL Server driver)