Received: from localhost (unknown [200.46.204.183]) by developer.postgresql.org (Postfix) with ESMTP id 08CDD2E0042 for ; Wed, 30 Apr 2008 11:25:46 -0300 (ADT) Received: from developer.postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 58356-04 for ; Wed, 30 Apr 2008 11:25:31 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from mailhost.intellivid.com (mailhost.intellivid.com [64.32.200.11]) by developer.postgresql.org (Postfix) with ESMTP id 7DD6A2E002D for ; Wed, 30 Apr 2008 11:25:36 -0300 (ADT) Received: from [192.168.2.80] (vega.intellivid.com [192.168.2.80]) by newmail.intellivid.com (Postfix) with ESMTP id 86E956C665; Wed, 30 Apr 2008 09:02:27 -0400 (EDT) Subject: Re: 8.1.8 autovacuum missing databases From: Ian Westmacott To: Alvaro Herrera Cc: pgsql-admin@postgresql.org In-Reply-To: <20080429211244.GM5652@alvh.no-ip.org> References: <1209499373.18622.47.camel@vega.intellivid.com> <20080429203335.GK5652@alvh.no-ip.org> <1209503103.18622.68.camel@vega.intellivid.com> <20080429211244.GM5652@alvh.no-ip.org> Content-Type: text/plain Organization: IntelliVid Corp. Date: Wed, 30 Apr 2008 09:02:26 -0400 Message-Id: <1209560546.5209.12.camel@vega.intellivid.com> Mime-Version: 1.0 X-Mailer: Evolution 2.8.2 Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200804/306 X-Sequence-Number: 29070 On Tue, 2008-04-29 at 17:12 -0400, Alvaro Herrera wrote: > Can you verify whether age(pg_database.datfrozenxid) is shrinking after > vacuuming? If the age() of a database is higher than the applicable > max_freeze_age, then it will always be chosen. One of the databases is about 1.5TB, so that could take a while. Anything else I could look at in the meantime? The age of these databases right now is about 290039577. Also, autovacuum doesn't always choose the same DB, it alternates between template1 and one of mine -- going back through a couple of months of logs I don't see it ever choosing the same one twice in a row. I'll note that I have 5 of these essentially identical systems (same hardware/software platform, databases, configuration, and load). Two of them have this issue (autovacuum processing multiple databases, but not all) and the other three don't. A commonality between the two that have this issue is that template1 is processed but postgres is not. One of the two is processing the 1.5TB DB but the other is not. Thanks, --Ian