Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 3BB3A475FB7 for ; Thu, 12 Sep 2002 15:03:16 -0400 (EDT) Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by postgresql.org (Postfix) with ESMTP id A05CE475F1C for ; Thu, 12 Sep 2002 15:03:15 -0400 (EDT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.5/8.12.5) with ESMTP id g8CJ34Ko008969; Thu, 12 Sep 2002 15:03:04 -0400 (EDT) To: Brickley Jeff-RA9607 Cc: "'pgsql-admin@postgresql.org'" Subject: Re: Vaccuum/Analyze In-reply-to: <7146D19B7FC9D5119F6400D0B7B993080318C9CF@az33exm22.corp.mot.com> References: <7146D19B7FC9D5119F6400D0B7B993080318C9CF@az33exm22.corp.mot.com> Comments: In-reply-to Brickley Jeff-RA9607 message dated "Thu, 12 Sep 2002 07:40:53 -0700" Date: Thu, 12 Sep 2002 15:03:03 -0400 Message-ID: <8968.1031857383@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200209/144 X-Sequence-Number: 5683 Brickley Jeff-RA9607 writes: > I am running PostgreSQL 7.2.1 on a Sun 5.8 OS. I have a database named metrics with 4 tables. A few of the tables contain approx. 10 million records. When I run a vaccuum/analyze with the following command: > vacuumdb -d metrics -z -v > the process 'hangs' for several hours and then an error message appears that says: > vacuumdb: vacuum metrics failed. > ERROR: RelationClearRelation: Relation 16599 deleted while still in use. > Watching the stdout I see the process is 'hanging' on analyzing one of my tables called file_dup. This table has no data in it. What strikes me as odd is that I ran vacuumdb against the file_dup table itself: > (vacuumdb -z -v -t 'file_dup' metrics) and it completed within seconds without errors. I'd be inclined to wonder what else is accessing that database. Could some other process be sitting with an open transaction that has that table locked? regards, tom lane