Received: from magus.postgresql.org (magus.postgresql.org [87.238.57.229]) by mail.postgresql.org (Postfix) with ESMTP id E2D6897D956 for ; Fri, 18 Nov 2011 13:52:50 -0400 (AST) Received: from ns2.gransy.com ([89.187.132.100] helo=elizabeth.gransy.com) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1RRScH-0002Jj-VQ for pgsql-bugs@postgresql.org; Fri, 18 Nov 2011 17:52:49 +0000 Received: from sq.gransy.com (localhost [127.0.0.1]) by elizabeth.gransy.com (Postfix) with ESMTP id CED9815E4136; Fri, 18 Nov 2011 18:52:30 +0100 (CET) Received: from 85.160.32.227 (SquirrelMail authenticated user tv@fuzzy.cz) by sq.gransy.com with HTTP; Fri, 18 Nov 2011 18:52:30 +0100 Message-ID: <2e0d250ae01ece58a2c387f52f3121fc.squirrel@sq.gransy.com> In-Reply-To: <201111181642.pAIGgaLY007885@wwwmaster.postgresql.org> References: <201111181642.pAIGgaLY007885@wwwmaster.postgresql.org> Date: Fri, 18 Nov 2011 18:52:30 +0100 Subject: Re: BUG #6300: duplicate key value violates unique constraint From: "Tomas Vondra" To: "Tigran Mkrtchyan" Cc: pgsql-bugs@postgresql.org User-Agent: SquirrelMail/1.4.21 MIME-Version: 1.0 Content-Type: text/plain;charset=utf-8 X-Priority: 3 (Normal) Importance: Normal Content-Transfer-Encoding: quoted-printable X-Archive-Number: 201111/134 X-Sequence-Number: 31729 On 18 Listopad 2011, 17:42, Tigran Mkrtchyan wrote: > > The following bug has been logged online: > > Bug reference: 6300 > Logged by: Tigran Mkrtchyan > Email address: tigran.mkrtchyan@desy.de > PostgreSQL version: 9.0.4 > Operating system: Linux x86_64 > Description: duplicate key value violates unique constraint > Details: > > Hi, > > our application uses PostgreSQL as a backend and heavily > relays on transactions. We never check constrains in our application as= DB > does is better than we can an in an atomic way. This works very-very go= od! > Nevertheless the logfiles are full of 'duplicate key value violates uni= que > constraint'. I have two questions: If it's a question, then why have you submitted it as a bug? This is not = a bug, it's correct and expected behavior - please, repost the questions to the appropriate place, e.g. pgsql-general mailing list. Tomas > > 1. why it logged with ERROR level as it clients application behavior. > > 2. is there a way to suppress it or could you add a way to suppress it. > > > Thanks a lot, > Tigran. > > -- > Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) > To make changes to your subscription: > http://www.postgresql.org/mailpref/pgsql-bugs >