X-Original-To: pgsql-admin@postgresql.org Received: from spampd.localdomain (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 3C6074762EF for ; Tue, 29 Apr 2003 10:41:17 -0400 (EDT) Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by postgresql.org (Postfix) with ESMTP id 016CF475B47 for ; Tue, 29 Apr 2003 10:40:41 -0400 (EDT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.9/8.12.9) with ESMTP id h3TEehU6026468; Tue, 29 Apr 2003 10:40:43 -0400 (EDT) To: Jeff Boes Cc: pgsql-admin@postgresql.org Subject: Re: Still getting VACUUM errors after 7.2.4 upgrade In-reply-to: References: Comments: In-reply-to Jeff Boes message dated "Tue, 29 Apr 2003 09:21:00 -0400" Date: Tue, 29 Apr 2003 10:40:42 -0400 Message-ID: <26467.1051627242@sss.pgh.pa.us> From: Tom Lane X-Spam-Status: No, hits=-28.0 required=5.0 tests=BAYES_01,EMAIL_ATTRIBUTION,IN_REP_TO,NO_DNS_FOR_FROM, REFERENCES,REPLY_WITH_QUOTES autolearn=ham version=2.50 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.50 (1.173-2003-02-20-exp) X-Archive-Number: 200304/383 X-Sequence-Number: 8538 Jeff Boes writes: > ERROR: No one parent tuple was found > NOTICE: Child itemid in update-chain marked as unused - > can't continue repair_frag > Are these problems serious? Should I just ignore them until we go to 7.3? No; yes. They've been "fixed" in 7.3 by the simple expedient of downgrading the messages to DEBUG level ;-). The reason is that these are in fact not unexpected cases. The 7.3 source code explains: * NOTE: this test is not 100% accurate: it is possible for a * tuple to be an updated one with recent xmin, and yet not * have a corresponding tuple in the vtlinks list. Presumably * there was once a parent tuple with xmax matching the xmin, * but it's possible that that tuple has been removed --- for * example, if it had xmin = xmax then * HeapTupleSatisfiesVacuum would deem it removable as soon as * the xmin xact completes. * * To be on the safe side, we abandon the repair_frag process if * we cannot find the parent tuple in vtlinks. This may be * overly conservative; AFAICS it would be safe to move the * chain. Since the set of tuples deemed "recent" depends on the age of the oldest open transaction, having long-running transactions open concurrently with your VACUUM FULL considerably increases the odds of such trouble. Dunno if that describes your situation, or if there's anything you can do to change it if it is, but it's the only tip I can offer. Really my feeling about it is you shouldn't be doing VACUUM FULL on heavily-used tables anyway --- lazy VACUUM is what to be using. If that fails to keep the table size reasonable, that means you aren't doing it often enough or don't have a large enough FSM. regards, tom lane