X-Original-To: pgsql-admin@postgresql.org Received: from spampd.localdomain (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id DDCED475F6A for ; Tue, 8 Apr 2003 15:20:07 -0400 (EDT) Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by postgresql.org (Postfix) with ESMTP id D7728475FBA for ; Tue, 8 Apr 2003 15:20:02 -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 h38JJx2L019574; Tue, 8 Apr 2003 15:19:59 -0400 (EDT) To: Jeff Boes Cc: pgsql-admin@postgresql.org Subject: Re: pg_class.reltuples not reset by VACUUM? In-reply-to: <1049829572.4868.39.camel@takin.private.nexcerpt.com> References: <15397.1049824333@sss.pgh.pa.us> <1049825429.4871.36.camel@takin.private.nexcerpt.com> <19299.1049829035@sss.pgh.pa.us> <1049829572.4868.39.camel@takin.private.nexcerpt.com> Comments: In-reply-to Jeff Boes message dated "08 Apr 2003 15:19:32 -0400" Date: Tue, 08 Apr 2003 15:19:59 -0400 Message-ID: <19573.1049829599@sss.pgh.pa.us> From: Tom Lane X-Spam-Status: No, hits=-32.5 required=5.0 tests=BAYES_01,EMAIL_ATTRIBUTION,IN_REP_TO,QUOTED_EMAIL_TEXT, 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/111 X-Sequence-Number: 8266 Jeff Boes writes: > On Tue, 2003-04-08 at 15:10, Tom Lane wrote: >> Yup, you definitely have a big problem with dead-but-unreclaimed tuples. >> Look for some client that's holding an open transaction for long >> periods. > It's even weirder than that: note in the following how VACUUM sets the > tuple count high, and ANALYZE sets it low. That doesn't surprise me, given what they count. > This appears to happen even if there are no transactions open. You have open transactions. Go find 'em... regards, tom lane