From: Tom Lane <tgl@sss.pgh.pa.us>
To: scott.marlowe <scott.marlowe@ihs.com>
Cc: Dave Smith <dave.smith@candata.com>
Cc: pgsql-general@postgresql.org <pgsql-general@postgresql.org>
Subject: Re: Vacuum Error
Date: Mon, 12 Jan 2004 17:57:52 -0500
Message-ID: <5774.1073948272@sss.pgh.pa.us> (raw)
In-Reply-To: <Pine.LNX.4.33.0401121527080.20494-100000@css120.ihs.com>
References: <Pine.LNX.4.33.0401121527080.20494-100000@css120.ihs.com>
"scott.marlowe" <scott.marlowe@ihs.com> writes:
>> Dave Smith <dave.smith@candata.com> 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
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-general@postgresql.org
Cc: tgl@sss.pgh.pa.us, scott.marlowe@ihs.com, dave.smith@candata.com
Subject: Re: Vacuum Error
In-Reply-To: <5774.1073948272@sss.pgh.pa.us>
References: <Pine.LNX.4.33.0401121527080.20494-100000@css120.ihs.com> <5774.1073948272@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