X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id D9336D1C937 for ; Fri, 8 Aug 2003 16:38:09 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 48803-09 for ; Fri, 8 Aug 2003 13:36:42 -0300 (ADT) Received: from davinci.ethosmedia.com (unknown [209.128.84.228]) by svr1.postgresql.org (Postfix) with ESMTP id E4E9CD1C922 for ; Fri, 8 Aug 2003 13:37:58 -0300 (ADT) Received: from [63.195.55.98] (HELO spooky) by davinci.ethosmedia.com (CommuniGate Pro SMTP 4.0.2) with ESMTP id 3489489; Fri, 08 Aug 2003 09:38:21 -0700 Content-Type: text/plain; charset="iso-8859-1" From: Josh Berkus Organization: Aglio Database Solutions To: "alexandre :: aldeia digital" , pgsql-sql@postgresql.org Subject: Re: Abort Transaction DP PK (again) Date: Fri, 8 Aug 2003 09:37:33 -0700 User-Agent: KMail/1.4.3 References: <1108.200.170.156.137.1060275870.squirrel@webmail.ad2.com.br> In-Reply-To: <1108.200.170.156.137.1060275870.squirrel@webmail.ad2.com.br> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-Id: <200308080937.34002.josh@agliodbs.com> X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200308/75 X-Sequence-Number: 14691 Alexandre, > I know that this topic was discuted before but I like an alternative for > my high load INSERT query. > Why Postgres abort a transaction when find a duplicate PK ?!?! Postgres currently aborts a transaction upon *any* error condition, except warnings. We do not, currently, have a exception-handling model for procedure code. It's on the TODO list. -- Josh Berkus Aglio Database Solutions San Francisco