From: C. Bensend <benny@bennyvision.com>
To: pgsql-admin@postgresql.org
Subject: Re: Is the database being VACUUMed?
Date: Fri, 10 Feb 2006 15:13:31 -0600 (CST)
Message-ID: <4131.134.244.169.17.1139606011.squirrel@webmail.stinkweasel.net> (raw)
In-Reply-To: <6064nneznu.fsf@dba2.int.libertyrms.com>
References: <2894.134.244.169.17.1139587037.squirrel@webmail.stinkweasel.net>
<6064nneznu.fsf@dba2.int.libertyrms.com>
> If you have command string monitoring turned on, via
> stats_command_string in the postgresql.conf file, then you could get
> this information from the system view pg_stat_activity.
>
> Generally, you could look to see if a current_query is a vacuum, perhaps
> via...
>
> select * from pg_stat_activity where lower(current_query) like 'vacuum%' ;
Are there any drawbacks to turning this on (mine is not)? If not,
I can certainly do that.
> If that parameter is not turned on, then ps auxww | egrep [something
> finding your PG processes] | grep VACUUM could perhaps do the trick,
> albeit not from a straightforward database query...
Yes, I could do that, but I'd rather avoid it if I can. :)
Thanks much!
Benny
--
"'And you've got 10 gig of files to put through our mail system?' I
ask, squeezing my mouse in a non-approved manner." -- BOFH, 2006-01
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: benny@bennyvision.com
Subject: Re: Is the database being VACUUMed?
In-Reply-To: <4131.134.244.169.17.1139606011.squirrel@webmail.stinkweasel.net>
References: <2894.134.244.169.17.1139587037.squirrel@webmail.stinkweasel.net> <6064nneznu.fsf@dba2.int.libertyrms.com> <4131.134.244.169.17.1139606011.squirrel@webmail.stinkweasel.net>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox