Received: from localhost (unknown [200.46.204.184]) by postgresql.org (Postfix) with ESMTP id 6CF0E2E0032 for ; Tue, 26 Feb 2008 12:28:43 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-maia, port 10024) with ESMTP id 45943-03 for ; Tue, 26 Feb 2008 12:28:39 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from lou-bada.torma.org (lou-bada.torma.org [213.41.244.89]) by postgresql.org (Postfix) with ESMTP id 16A332E0039 for ; Tue, 26 Feb 2008 12:28:40 -0400 (AST) Received: from lara.torma.org (helmut.lou-bada.torma.org [IPv6:2001:7a8:b459:2:218:deff:fec1:e754]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by lou-bada.torma.org (Postfix) with ESMTP id C844C986E7 for ; Tue, 26 Feb 2008 17:28:37 +0100 (CET) From: Teemu Torma To: pgsql-sql@postgresql.org Subject: Re: duplicate key violates unique constraint Date: Tue, 26 Feb 2008 17:28:36 +0100 User-Agent: KMail/1.9.9 References: <014401c87887$a8fed450$3102a8c0@dream> <016401c87891$58237950$3102a8c0@dream> <20080226162246.GA9865@crankycanuck.ca> In-Reply-To: <20080226162246.GA9865@crankycanuck.ca> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Content-Disposition: inline Message-Id: <200802261728.36773.teemu@torma.org> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests=none X-Spam-Level: X-Archive-Number: 200802/204 X-Sequence-Number: 30295 On Tuesday 26 February 2008, Andrew Sullivan wrote: > Well, except that there's no "EXCEPTION" statement in SQL?  I think > your correspondent was intending for this to be programmatic. I was thinking pl/pgsql. Teemu