From: Tom Lane <tgl@sss.pgh.pa.us>
To: Brickley Jeff-RA9607 <Jeff.Brickley@motorola.com>
Cc: 'pgsql-admin@postgresql.org' <pgsql-admin@postgresql.org>
Subject: Re: Vaccuum/Analyze
Date: Thu, 12 Sep 2002 15:03:03 -0400
Message-ID: <8968.1031857383@sss.pgh.pa.us> (raw)
In-Reply-To: <7146D19B7FC9D5119F6400D0B7B993080318C9CF@az33exm22.corp.mot.com>
References: <7146D19B7FC9D5119F6400D0B7B993080318C9CF@az33exm22.corp.mot.com>
Brickley Jeff-RA9607 <Jeff.Brickley@motorola.com> 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: tgl@sss.pgh.pa.us, Jeff.Brickley@motorola.com
Subject: Re: Vaccuum/Analyze
In-Reply-To: <8968.1031857383@sss.pgh.pa.us>
References: <7146D19B7FC9D5119F6400D0B7B993080318C9CF@az33exm22.corp.mot.com> <8968.1031857383@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox