From: Paul Laughlin <plaughlin@gmail.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-bugs@postgresql.org
Subject: Re: duplicate key violates unique constraint pg_toast_635216540
Date: Mon, 16 Oct 2006 09:45:35 -0700
Message-ID: <f41e66d10610160945v75ee6f19kf7ee1c79a367265@mail.gmail.com> (raw)
In-Reply-To: <22210.1161015912@sss.pgh.pa.us>
References: <f41e66d10610160916m77430fdfmda08ff2b5d0df728@mail.gmail.com>
<22210.1161015912@sss.pgh.pa.us>
warehouse=# select count(distinct chunk_id) from
pg_toast.pg_toast_635216540;
count
-------
74557
(1 row)
We're on version 8.0.7
On 10/16/06, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>
> "Paul Laughlin" <plaughlin@gmail.com> writes:
> > For the last 6 months or so we've had an intermittent issue while doing
> a
> > data import with a simple update statement. The fix that we've found
> for
> > this issue is to REINDEX TABLE <tablename>;
>
> What PG version is this?
>
> Are you sure that the REINDEX actually does anything, as opposed to
> merely retrying the data import? I'm thinking you may be having
> problems with OID collisions after OID wraparound, which is something
> 8.1 should defend against but no earlier version does.
>
> What do you get from
> select count(distinct chunk_id) from pg_toast.pg_toast_635216540 ;
>
> 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-bugs@postgresql.org
Cc: plaughlin@gmail.com, tgl@sss.pgh.pa.us
Subject: Re: duplicate key violates unique constraint pg_toast_635216540
In-Reply-To: <f41e66d10610160945v75ee6f19kf7ee1c79a367265@mail.gmail.com>
References: <f41e66d10610160916m77430fdfmda08ff2b5d0df728@mail.gmail.com> <22210.1161015912@sss.pgh.pa.us> <f41e66d10610160945v75ee6f19kf7ee1c79a367265@mail.gmail.com>
* 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