X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id EE11AD1F0B5 for ; Tue, 20 Apr 2004 20:51:27 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 65813-06 for ; Tue, 20 Apr 2004 20:51:23 -0300 (ADT) Received: from www.postgresql.com (www.postgresql.com [200.46.204.209]) by svr1.postgresql.org (Postfix) with ESMTP id 9858DD201A7 for ; Tue, 20 Apr 2004 19:17:15 -0300 (ADT) Received: from ha-smtp3.tiscali.nl (smtp-b2c.tiscali.nl [195.241.80.19]) by www.postgresql.com (Postfix) with ESMTP id B756FCF6789 for ; Tue, 20 Apr 2004 16:14:47 -0300 (ADT) Received: from linux (82-168-46-166-bbxl.xdsl.tiscali.nl [82.168.46.166]) by ha-smtp3.tiscali.nl (Postfix) with SMTP id 14C4DCED06 for ; Tue, 20 Apr 2004 21:14:47 +0200 (CEST) From: "H.J. Sanders" To: Subject: transaction Date: Tue, 20 Apr 2004 21:14:48 +0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 X-Virus-Scanned: by amavisd-new at postgresql.org X-Spam-Status: No, hits=0.3 tagged_above=0.0 required=5.0 tests=LINES_OF_YELLING, UPPERCASE_25_50 X-Spam-Level: X-Archive-Number: 200404/194 X-Sequence-Number: 17569 Hello list. We are migrating from Informix to PSQL. In Informix we used to do: - BEGIN WORK - INSERT ROW - IF FAILED THEN UPDATE ROW - COMMIT WORK In PSQL this does not seem to work because after the first error (the insert) everything is omitted. Has someone found a solution for this (we have 1000's of this type). Henk Sanders