pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: H.J. Sanders <hjs@worldonline.nl>
To: pgsql-sql@postgresql.org
Subject: transaction
Date: Tue, 20 Apr 2004 21:14:48 +0200
Message-ID: <KIEBKBGIGGNDKKJJNKCFOELJCJAA.hjs@worldonline.nl> (raw)


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











view thread (5+ messages)  latest in thread

Message-ID: <KIEBKBGIGGNDKKJJNKCFOELJCJAA.hjs@worldonline.nl>
Permalink:  ../KIEBKBGIGGNDKKJJNKCFOELJCJAA.hjs@worldonline.nl/
Also on:    postgresql.org/message-id/KIEBKBGIGGNDKKJJNKCFOELJCJAA.hjs@worldonline.nl

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: hjs@worldonline.nl
  Subject: Re: transaction
  In-Reply-To: <KIEBKBGIGGNDKKJJNKCFOELJCJAA.hjs@worldonline.nl>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox