How do I tell if a vacuum is currently running?

Started by William Garrisonover 17 years ago2 messagesgeneral
Jump to latest
#1William Garrison
postgres@mobydisk.com

If the autovacuum is running, will that show somewhere? I know there is
a command to see currently running queries (not in front of me right
now) but will that show vacuums or any other maintenance operations that
might be running?

#2Alvaro Herrera
alvherre@2ndquadrant.com
In reply to: William Garrison (#1)
Re: How do I tell if a vacuum is currently running?

William Garrison wrote:

If the autovacuum is running, will that show somewhere? I know there is
a command to see currently running queries (not in front of me right
now) but will that show vacuums or any other maintenance operations that
might be running?

Yes, autovacuum appears in pg_stat_activity.

--
Alvaro Herrera http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support