X-Original-To: pgsql-general-postgresql.org@localhost.postgresql.org Received: from localhost (neptune.hub.org [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 76E3DD1B55D for ; Mon, 12 Jan 2004 22:58:30 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 89199-04 for ; Mon, 12 Jan 2004 18:58:01 -0400 (AST) Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by svr1.postgresql.org (Postfix) with ESMTP id 7F47FD1B469 for ; Mon, 12 Jan 2004 18:57:58 -0400 (AST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.10/8.12.10) with ESMTP id i0CMvr19005775; Mon, 12 Jan 2004 17:57:53 -0500 (EST) To: "scott.marlowe" Cc: Dave Smith , "pgsql-general@postgresql.org" Subject: Re: Vacuum Error In-reply-to: References: Comments: In-reply-to "scott.marlowe" message dated "Mon, 12 Jan 2004 15:27:26 -0700" Date: Mon, 12 Jan 2004 17:57:52 -0500 Message-ID: <5774.1073948272@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200401/545 X-Sequence-Number: 55573 "scott.marlowe" writes: >> Dave Smith writes: >>> I am running 7.2 and when doing a vacuum I am getting the following >>> error.... >> >>> ERROR: Cannot insert a duplicate key into unique index >>> pg_statistic_relid_att_index > Didn't this happen with parallel vacuum / analyzes running in the olden > days? I don't think it could happen in 7.2, because that release took ExclusiveLock on pg_statistic while inserting rows. Later releases use a weaker lock (to permit concurrent ANALYZE of different tables) and are subject to "concurrent update" errors if you try to run two ANALYZEs of the same table at the same time. But it doesn't sound like Dave is doing that, anyway. regards, tom lane