Distinguishing autovacuum activity in pg_stat_activity

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
Cc: pgsql-hackers(at)postgreSQL(dot)org
Subject: Distinguishing autovacuum activity in pg_stat_activity
Date: 2008-01-13 21:59:47
Message-ID: 9452.1200261587@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

I was just noticing that $SUBJECT is hard --- the entry in current_query
looks exactly like a manual vacuum command, and there's not anything in
the other fields that looks different either.

Since autovacuum.c is making up its pgstat_report_activity string
anyway, it would be easy to make the string look like, say,
AUTO VACUUM ANALYZE foo.bar

I think this would be a helpful change, but some might find it
confusing. Thoughts?

regards, tom lane

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Guillaume Smet 2008-01-13 22:14:32 Re: Distinguishing autovacuum activity in pg_stat_activity
Previous Message Hannes Dorbath 2008-01-13 21:01:49 Re: Index trouble with 8.3b4