Re: autovacuum "connections" are hidden

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
Cc: Larry Rosenman <lrosenman(at)pervasive(dot)com>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Casey Duncan <casey(at)pandora(dot)com>, pgsql-general(at)postgresql(dot)org
Subject: Re: autovacuum "connections" are hidden
Date: 2006-05-18 17:07:10
Message-ID: 200605181707.k4IH7Al19847@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-hackers

Alvaro Herrera wrote:
> Larry Rosenman wrote:
> > Bruce Momjian wrote:
> > > Tom Lane wrote:
> > >> Casey Duncan <casey(at)pandora(dot)com> writes:
> > >>> however, when I did "select * from pg_stat_activity" on the pg
> > >>> server, it showed no connection to that db. Then I looked at the
> > >>> processes: tmp0% ps ax | grep test_seg1
> > >>> 10317 ? D 0:36 postgres: autovacuum process test_seg1
> > >>
> > >> Hmm, autovacuum won't show up in pg_stat_activity because it never
> > >> calls pgstat_report_activity(). Seems like maybe it should, though.
>
> Yep. I'll fix it. Should I backpatch to 8.1?
>
> > > If we do that, would it help people who are trying to determine if
> > > pg_autovacuum is running? Would the connection still appear while
> > > pg_autovacuum is sleeping?
> >
> > I believe while autovacuum is sleeping, the process is gone.
>
> Yes, which means that really autovacuum does not sleep (it just exits
> when it's done). Postmaster is the one who sleeps between autovac
> iterations.

Good, anyway, it would allow people to see _when_ autovacuum is
processing things.

--
Bruce Momjian http://candle.pha.pa.us
EnterpriseDB http://www.enterprisedb.com

+ If your life is a hard drive, Christ can be your backup. +

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2006-05-18 17:16:08 Re: autovacuum "connections" are hidden
Previous Message Alvaro Herrera 2006-05-18 17:05:58 Re: autovacuum "connections" are hidden

Browse pgsql-hackers by date

  From Date Subject
Next Message Joshua D. Drake 2006-05-18 17:10:37 Re: [OT] MySQL is bad, but THIS bad?
Previous Message Alvaro Herrera 2006-05-18 17:05:58 Re: autovacuum "connections" are hidden