Re: Is the database being VACUUMed?

From: Brad Nicholson <bnichols(at)ca(dot)afilias(dot)info>
To: "C(dot) Bensend" <benny(at)bennyvision(dot)com>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: Is the database being VACUUMed?
Date: 2006-02-10 21:19:37
Message-ID: 43ED0369.2090705@ca.afilias.info
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

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.

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message david drummard 2006-02-10 21:26:07 Re: performance question related to pgsql
Previous Message C. Bensend 2006-02-10 21:13:31 Re: Is the database being VACUUMed?