Re: Connection terminates but postmaster proc lives on...?
В списке pgsql-admin по дате отправления:
| От | Tom Lane |
|---|---|
| Тема | Re: Connection terminates but postmaster proc lives on...? |
| Дата | |
| Msg-id | 5896.1019101633@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Connection terminates but postmaster proc lives on...? ("Jeff Madison" <jeff@ikano.com>) |
| Список | pgsql-admin |
"Jeff Madison" <jeff@ikano.com> writes:
> ... What we are seeing is when
> people terminate the application in the middle of a query many times
> postmaster does not see the connection terminate or at least ignores it
> and then proceeds to take a large amount of system resources and never
> dies.
As a general rule, the backend will not notice a connection closure
until it next tries to read from the connection. If you issue some
query that takes a long time to compute, and then give up and abort
your client, the query will still run.
If you're not sure what query you are running, you could attach to
one of the CPU-hogging backends with gdb and issue "p debug_query_string"
to see what it's working on.
regards, tom lane
В списке pgsql-admin по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера