Received: from magus.postgresql.org (magus.postgresql.org [87.238.57.229]) by mail.postgresql.org (Postfix) with ESMTP id BD5C8989B4D for ; Wed, 11 Jan 2012 11:25:16 -0400 (AST) Received: from 30.55.colo.spiretech.net ([69.168.55.30] helo=lists.commandprompt.com) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Rl033-0004Vh-3e for pgsql-bugs@postgresql.org; Wed, 11 Jan 2012 15:25:16 +0000 Received: from perhan.alvh.no-ip.org (spinlock.commandprompt.com [69.168.55.30]) by lists.commandprompt.com (Postfix) with ESMTPA id A6722DC; Wed, 11 Jan 2012 07:25:12 -0800 (PST) Received: from perhan.alvh.no-ip.org ([190.95.26.35] helo=perhan.alvh.no-ip.org) by assp.commandprompt.com with ESMTPS(AES256-SHA) (2.1.1); 11 Jan 2012 07:25:10 -0800 Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id 8F80C6E433; Wed, 11 Jan 2012 12:24:50 -0300 (CLST) Content-Type: text/plain; charset=UTF-8 Cc: Pg Bugs Subject: Re: BUG #6393: cluster sometime fail under heavy concurrent write load From: Alvaro Herrera To: maxim.boguk In-reply-to: References: Date: Wed, 11 Jan 2012 12:24:50 -0300 Message-Id: <1326295419-sup-3436@alvh.no-ip.org> User-Agent: Sup/git X-Assp-Version: 2.1.1(11278) on assp.commandprompt.com X-Assp-Client-TLS: yes X-Assp-ID: assp.commandprompt.com m1-95512-07095 X-Assp-Envelope-From: alvherre@alvh.no-ip.org X-Assp-Intended-For: maxim.boguk@gmail.com X-Assp-Original-Subject: Re: [BUGS] BUG #6393: cluster sometime fail under heavy concurrent write load Content-Transfer-Encoding: quoted-printable X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201201/81 X-Sequence-Number: 32148 Excerpts from maxim.boguk's message of mar ene 10 23:00:59 -0300 2012: > The following bug has been logged on the website: >=20 > Bug reference: 6393 > Logged by: Maxim Boguk > Email address: maxim.boguk@gmail.com > PostgreSQL version: 9.0.6 > Operating system: Linux Ubuntu > Description: =20 >=20 > 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 clus= ter: >=20 > db=3D# cluster public.enqueued_mail; > ERROR: duplicate key value violates unique constraint > "pg_toast_119685646_index" > DETAIL: Key (chunk_id, chunk_seq)=3D(119685590, 0) already exists. >=20 > chunk_id different each time. >=20 > No uncommon datatypes exists in the table. >=20 > 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. --=20 =C3=81lvaro Herrera The PostgreSQL Company - Command Prompt, Inc. PostgreSQL Replication, Consulting, Custom Development, 24x7 support