| От | Tom Lane |
|---|---|
| Тема | Re: autovacuum hung? |
| Дата | |
| Msg-id | 9708.1243699114@sss.pgh.pa.us обсуждение |
| Ответ на | autovacuum hung? (Brian Cox <brian.cox@ca.com>) |
| Список | pgsql-performance |
Brian Cox <brian.cox@ca.com> writes:
> autovacuum has been running on 2 tables for > 5 hours. There tables are
> not huge (see below). For the past ~1 hour, I've shut off all other
> activity on this database. The other table being vacuumed has more rows
> (1897810). Anyone have any ideas about why this is taking so long?
Are those processes actually doing anything, or just waiting? strace
or local equivalent would be the most conclusive check.
> cemdb=# select c.oid,c.relname,l.pid,l.mode,l.granted from pg_class c
> join pg_locks l on c.oid=l.relation order by l.pid;
This query isn't very helpful because it fails to show locks that are
not directly associated with tables.
regards, tom lane
В списке pgsql-performance по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера