From: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
---|---|
To: | Brandon Metcalf <bmetcalf(at)nortel(dot)com> |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: pg_autovacuum not sleeping |
Date: | 2005-09-20 21:41:27 |
Message-ID: | 200509202141.j8KLfRe10354@candle.pha.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Brandon Metcalf wrote:
> We're using pg_autovacuum with PostgreSQL 8.0.3 and it isn't sleeping
> as long as the claims it will. For example,
>
> ...
> [2005-09-20 15:40:23 CDT] INFO: last_analyze_count: 21735550; last_vacuum_count: 21735009
> [2005-09-20 15:40:23 CDT] INFO: analyze_threshold: 40676; vacuum_threshold: 81352
> [2005-09-20 15:40:23 CDT] DEBUG: 347 All DBs checked in: 1428748500 usec, will sleep for 4886 secs.
> [2005-09-20 15:50:14 CDT] DEBUG: Performing: VACUUM ANALYZE "public"."model_lastexport"
>
> So, pg_autovacuum says it's going to sleep for 4886 seconds, but fires
> up again after just under 600 seconds.
>
> Can anyone explain what I'm seeing?
Yep, this was fixed in 8.0.X CVS in May, two days after the release of
8.0.3:
revision 1.27.4.4
date: 2005/05/11 17:58:32; author: momjian; state: Exp; lines: +11 -2
Fix pg_autovacuum -s flag to handle values > 2000 by using sleep()
instead of pg_usleep.
Backpatch to 8.0.X.
We are thinking of putting out an 8.0.4 in a few days, but until then
you can pull from CVS branch REL8_0_STABLE and use that fix in
pg_autovacuum.c.
--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073
From | Date | Subject | |
---|---|---|---|
Next Message | Stephan Szabo | 2005-09-20 22:08:34 | Re: Question about a query plan |
Previous Message | Bill Moseley | 2005-09-20 21:39:15 | Re: Question about a query plan |