| От | Doug Silver |
|---|---|
| Тема | Tracking down "idle in transaction" processes |
| Дата | |
| Msg-id | 200408271112.18734.dsilver@urchin.com обсуждение исходный текст |
| Список | pgsql-novice |
I have recently noticed that there are ~22 postmaster processes that are "idle
in transaction". They are definitely caused from a web/Apache process, but I
can't figure out how to track down the cause. The pg_stat_activity table
shows them, but the current_query is empty. I've seen several questions
asked about this, but no definitive responses.
I saw from a posting to another list that someone suggested setting
$dbh->{AutoCommit} = 1;
immediately after doing a commit. Is this the proper way to code it? Would
not changing the AutoCommit flag cause the "idle in transaction" processes?
I don't think these were showing up before because I had not enabled the
Apache::DBI during startup.
This is for Postgres 7.3.2_1 on a FBSD system.
TIA.
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Doug Silver
Urchin Software Corp. http://www.urchin.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
В списке pgsql-novice по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера