| От | Tom Lane |
|---|---|
| Тема | Re: pg_stat_get_backen_last_activity() ??? |
| Дата | |
| Msg-id | 19554.1042845081@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | pg_stat_get_backen_last_activity() ??? (Sean Chittenden <sean@chittenden.org>) |
| Ответы |
Re: pg_stat_get_backen_last_activity() ???
|
| Список | pgsql-general |
Sean Chittenden <sean@chittenden.org> writes:
> Is there any notion of pg_stat_get_backend_last_activity()? I've got
> a rogue process someplace and I'm having a devil of a time tracking
> down which process is not committing its transaction and letting the
> rest of the world continue to access the tables.
Perhaps look in pg_locks to see who's holding the oldest open
transaction number, or who's got the most locks that other people
are waiting for? That should get you at least the PID of the offender.
Then use ps and/or pg_stat_activity to figure out what the offender
is doing.
regards, tom lane
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера