From: Alvaro Herrera <alvherre@commandprompt.com>
To: maxim.boguk <maxim.boguk@gmail.com>
Cc: Pg Bugs <pgsql-bugs@postgresql.org>
Subject: Re: BUG #6393: cluster sometime fail under heavy concurrent write load
Date: Wed, 11 Jan 2012 12:24:50 -0300
Message-ID: <1326295419-sup-3436@alvh.no-ip.org> (raw)
In-Reply-To: <E1RknUp-0000cl-ME@wrigleys.postgresql.org>
References: <E1RknUp-0000cl-ME@wrigleys.postgresql.org>
Excerpts from maxim.boguk's message of mar ene 10 23:00:59 -0300 2012:
> The following bug has been logged on the website:
>
> Bug reference: 6393
> Logged by: Maxim Boguk
> Email address: maxim.boguk@gmail.com
> PostgreSQL version: 9.0.6
> Operating system: Linux Ubuntu
> Description:
>
> I have heavy write-load table under PostgreSQL 9.0.6 and sometime (not
> always but more then 50% chance) i'm getting the next error during cluster:
>
> db=# cluster public.enqueued_mail;
> ERROR: duplicate key value violates unique constraint
> "pg_toast_119685646_index"
> DETAIL: Key (chunk_id, chunk_seq)=(119685590, 0) already exists.
>
> chunk_id different each time.
>
> No uncommon datatypes exists in the table.
>
> Currently I work on create reproducible test case (but it seems require 2-3
> open write transaction on the table).
I don't see how can this be done at all, given that cluster grabs an
exclusive lock on the table in question. An better example illustrating
what you're really doing would be useful.
--
Álvaro Herrera <alvherre@commandprompt.com>
The PostgreSQL Company - Command Prompt, Inc.
PostgreSQL Replication, Consulting, Custom Development, 24x7 support
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: alvherre@commandprompt.com, maxim.boguk@gmail.com
Subject: Re: BUG #6393: cluster sometime fail under heavy concurrent write load
In-Reply-To: <1326295419-sup-3436@alvh.no-ip.org>
References: <E1RknUp-0000cl-ME@wrigleys.postgresql.org> <1326295419-sup-3436@alvh.no-ip.org>
* 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