From: Brad Nicholson <bnichols@ca.afilias.info>
To: C. Bensend <benny@bennyvision.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: Is the database being VACUUMed?
Date: Fri, 10 Feb 2006 16:19:37 -0500
Message-ID: <43ED0369.2090705@ca.afilias.info> (raw)
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>
C. Bensend wrote:
>>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.
>
>
>
Well, you have to turn on the stats collector, so you will pay a little
bit of a performance penalty for that. I doubt you'll notice it unless
you're really close to the edge. You do have to restart the database to
enable the stats collector if it's off. The pg_stat_activity stuff is
pretty essential for debugging problems in the database.
--
Brad Nicholson 416-673-4106
Database Administrator, Afilias Canada Corp.
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: bnichols@ca.afilias.info, benny@bennyvision.com
Subject: Re: Is the database being VACUUMed?
In-Reply-To: <43ED0369.2090705@ca.afilias.info>
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> <43ED0369.2090705@ca.afilias.info>
* 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