From: Ireneusz Pluta <ipluta@wp.pl>
To: Sibte Abbas <sibtay@gmail.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: Logging autovacuum activity
Date: Wed, 20 Jun 2007 20:41:03 +0200
Message-ID: <467974BF.4060809@wp.pl> (raw)
In-Reply-To: <bd6a35510706201019h241c09c3u9bc2f4ba7c8a7719@mail.gmail.com>
References: <46795EA3.8030703@wp.pl>
<bd6a35510706201019h241c09c3u9bc2f4ba7c8a7719@mail.gmail.com>
Sibte Abbas napisaĆ(a):
> On 6/20/07, Ireneusz Pluta <ipluta@wp.pl> wrote:
>> Hello,
>>
>> How can I make sure that autovacuum is running, beyond believing that
>> all autovacuum_ settings in
>> postgresql.conf are set correctly?
>>
>> In the 8.1 I could see:
>> LOG: autovacuum: processing database "test"
>> in the log.
>>
>> But I can't find it in the 8.2.4.
>>
>> I could see some developers discussions about making changes to
>> logging autovacuum activity, however
>> could not track the discussion tight enough to find what the final
>> solution is.
>>
>> Thanks
>>
>> Ireneusz Pluta
>>
>>
>
> ps -ef | grep autovacuum.
>
It does not show it. I run freebsd, does it matter?
Anyway, I found that I may enable logging autovacuum messages by setting:
log_min_messages = debug1
in postgresql.conf
I found it from postgresql-8.2.4/src/backend/postmaster/autovacuum.c, where I read in line 420:
ereport(DEBUG1,
(errmsg("autovacuum: processing database \"%s\"", db->name)));
and this is what the developers were discussing and I did not understand initially.
Sorry for the noise.
Ireneusz Pluta
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 using the --to and --cc options:
reply via email
To: pgsql-admin@postgresql.org
Cc: ipluta@wp.pl, sibtay@gmail.com
Subject: Re: Logging autovacuum activity
In-Reply-To: <467974BF.4060809@wp.pl>
* 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