pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Logging autovacuum activity
4+ messages / 3 participants
[nested] [flat]

* Logging autovacuum activity
@ 2007-06-20 17:06  Ireneusz Pluta <ipluta@wp.pl>
  0 siblings, 1 reply; 4+ messages in thread

From: Ireneusz Pluta @ 2007-06-20 17:06 UTC (permalink / raw)
  To: pgsql-admin

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




^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: Logging autovacuum activity
@ 2007-06-20 17:19  Sibte Abbas <sibtay@gmail.com>
  parent: Ireneusz Pluta <ipluta@wp.pl>
  0 siblings, 1 reply; 4+ messages in thread

From: Sibte Abbas @ 2007-06-20 17:19 UTC (permalink / raw)
  To: Ireneusz Pluta <ipluta@wp.pl>; +Cc: pgsql-admin

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.

-- 
Sibte Abbas
EnterpriseDB http://www.enterprisedb.com



^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: Logging autovacuum activity
@ 2007-06-20 18:41  Ireneusz Pluta <ipluta@wp.pl>
  parent: Sibte Abbas <sibtay@gmail.com>
  0 siblings, 1 reply; 4+ messages in thread

From: Ireneusz Pluta @ 2007-06-20 18:41 UTC (permalink / raw)
  To: Sibte Abbas <sibtay@gmail.com>; +Cc: pgsql-admin



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




^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: Logging autovacuum activity
@ 2007-06-20 18:52  Shoaib Mir <shoaibmir@gmail.com>
  parent: Ireneusz Pluta <ipluta@wp.pl>
  0 siblings, 0 replies; 4+ messages in thread

From: Shoaib Mir @ 2007-06-20 18:52 UTC (permalink / raw)
  To: Ireneusz Pluta <ipluta@wp.pl>; +Cc: Sibte Abbas <sibtay@gmail.com>; pgsql-admin

You can also use the following query to check the autovacuum activity:

select last_autovacuum, last_autoanalyze from
"pg_catalog"."pg_stat_all_tables"

--
Shoaib Mir
EnterpriseDB (www.enterprisedb.com)

On 6/20/07, Ireneusz Pluta <ipluta@wp.pl> wrote:
>
>
>
> 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
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 3: Have you checked our extensive FAQ?
>
>                http://www.postgresql.org/docs/faq
>


^ permalink  raw  reply  [nested|flat] 4+ messages in thread


end of thread, other threads:[~2007-06-20 18:52 UTC | newest]

Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2007-06-20 17:06 Logging autovacuum activity Ireneusz Pluta <ipluta@wp.pl>
2007-06-20 17:19 ` Sibte Abbas <sibtay@gmail.com>
2007-06-20 18:41   ` Ireneusz Pluta <ipluta@wp.pl>
2007-06-20 18:52     ` Shoaib Mir <shoaibmir@gmail.com>

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