Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 94DA2632FEB for ; Fri, 14 May 2010 01:40:54 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 95644-01 for ; Fri, 14 May 2010 04:40:47 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from spinlock.commandprompt.com (host-215.commandprompt.net [207.173.203.215]) by mail.postgresql.org (Postfix) with ESMTP id 34B79632946 for ; Fri, 14 May 2010 01:40:46 -0300 (ADT) Received: from localhost (localhost [127.0.0.1]) by spinlock.commandprompt.com (Postfix) with ESMTP id B0CA3348037; Thu, 13 May 2010 21:40:45 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at commandprompt.com Received: from spinlock.commandprompt.com ([127.0.0.1]) by localhost (spinlock.commandprompt.com.commandprompt.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id RN-vRQxKBphi; Thu, 13 May 2010 21:40:43 -0700 (PDT) Received: from perhan.alvh.no-ip.org (190-95-31-142.bk17-dsl.surnet.cl [190.95.31.142]) by spinlock.commandprompt.com (Postfix) with ESMTPSA id 4E384348002; Thu, 13 May 2010 21:40:43 -0700 (PDT) Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id 55F9C6E4A3; Fri, 14 May 2010 00:40:41 -0400 (CLT) Content-Type: text/plain; charset=UTF-8 Cc: "pgsql-admin@postgresql.org" , Ireneusz Pluta Subject: Re: Autovacuum and invalid page header From: Alvaro Herrera To: Kevin Grittner In-reply-to: <4BEBC57002000025000316A3@gw.wicourts.gov> References: <4BEA8CD0.8070108@wp.pl> <4BEBC57002000025000316A3@gw.wicourts.gov> Date: Fri, 14 May 2010 00:40:41 -0400 Message-Id: <1273811839-sup-7071@alvh.no-ip.org> User-Agent: Sup/0.11 Content-Transfer-Encoding: 8bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.9 tagged_above=-10 required=5 tests=BAYES_00=-1.9 X-Spam-Level: X-Archive-Number: 201005/145 X-Sequence-Number: 34618 Excerpts from Kevin Grittner's message of jue may 13 10:25:04 -0400 2010: > Ireneusz Pluta wrote: > > > many different autovacuums on the same table cycling in start-fail > > scenario because of invalid page headers of some indexes of the > > table. Manual VACUUM VERBOSE said me that, now I can also see that > > in related ERROR-CONTEXT log message pairs. I dropped the damaged > > indexes and now that autovacuum seems to continue without > > repeating itself. > That does sound like an area where there might be room for > improvement within PostgreSQL; Yeah, maybe we should make it put the failed table at the end of the list, for the next run. This is not simple to implement, if only because autovac workers don't have any way to persist state from one run to the next. But this kind of thing causes enough problems that it's probably worth it. One thing to keep in mind, though, is that a persistent error in a single table is enough to keep a database's datfrozenxid from advancing, and thus shut down in case the wraparound horizon comes too close. So perhaps what we need is more visibility into autovacuum problems. --