Re: detection of VACUUM in progress

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: detection of VACUUM in progress
Дата
Msg-id 22212.1125417236@sss.pgh.pa.us
обсуждение исходный текст
Ответ на detection of VACUUM in progress  (Bohdan Linda <bohdan.linda@seznam.cz>)
Список pgsql-general
Bohdan Linda <bohdan.linda@seznam.cz> writes:
> Is there any way how to detect running command VACUUM by reading pg_* tables?

> The idea is to detectect when table is not accessible due maintainance.

Um, ordinary VACUUM doesn't render the table "not accessible".  If
you're using VACUUM FULL, maybe the right answer is to not do that.

But to answer your question, you could look in pg_locks to see if
there's an exclusive lock on the table.

            regards, tom lane

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

Предыдущее
От: "Hossein S. Attar"
Дата:
Сообщение: Re: postgres optimizer
Следующее
От: Clodoaldo Pinto
Дата:
Сообщение: Re: update functions locking tables