Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 3D3B5633271 for ; Fri, 14 May 2010 01:50:48 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 99917-07 for ; Fri, 14 May 2010 04:50:41 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by mail.postgresql.org (Postfix) with ESMTP id F12DF633235 for ; Fri, 14 May 2010 01:50:40 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id o4E4od7P014801; Fri, 14 May 2010 00:50:40 -0400 (EDT) To: Alvaro Herrera cc: Kevin Grittner , "pgsql-admin@postgresql.org" , Ireneusz Pluta Subject: Re: Autovacuum and invalid page header In-reply-to: <1273811839-sup-7071@alvh.no-ip.org> References: <4BEA8CD0.8070108@wp.pl> <4BEBC57002000025000316A3@gw.wicourts.gov> <1273811839-sup-7071@alvh.no-ip.org> Comments: In-reply-to Alvaro Herrera message dated "Fri, 14 May 2010 00:40:41 -0400" Date: Fri, 14 May 2010 00:50:39 -0400 Message-ID: <14800.1273812639@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-10 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201005/146 X-Sequence-Number: 34619 Alvaro Herrera writes: > 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. +1 for the latter. A recurrent vacuum failure is something that needs to be dealt with ASAP, not partially-worked-around. regards, tom lane