pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Rodrigo E. De León Plicet <rdeleonp@gmail.com>
To: Shavonne Marietta Wijesinghe <shavonne.marietta@studioform.it>
Cc: Teemu Torma <teemu@torma.org>
Cc: pgsql-sql@postgresql.org
Subject: Re: duplicate key violates unique constraint
Date: Tue, 26 Feb 2008 12:09:28 -0500
Message-ID: <a55915760802260909n1c1f4cd2i18fb56ccafa96d83@mail.gmail.com> (raw)
In-Reply-To: <017901c87895$b1782380$3102a8c0@dream>
References: <014401c87887$a8fed450$3102a8c0@dream>
	<016401c87891$58237950$3102a8c0@dream>
	<20080226162246.GA9865@crankycanuck.ca>
	<200802261728.36773.teemu@torma.org>
	<017901c87895$b1782380$3102a8c0@dream>

On Tue, Feb 26, 2008 at 11:36 AM, Shavonne Marietta Wijesinghe
<shavonne.marietta@studioform.it> wrote:
>     BEGIN
>         SAVEPOINT s1;
>         ... code here ...
>     EXCEPTION
>         WHEN ... THEN
>             ROLLBACK TO s1;
>             ... code here ...
>         WHEN ... THEN
>             ROLLBACK TO s1;
>             ... code here ...
>     END;

PostgreSQL doesn't have anonymous blocks.

You need to write a function.



view thread (17+ messages)  latest in thread

Message-ID: <a55915760802260909n1c1f4cd2i18fb56ccafa96d83@mail.gmail.com>
Permalink:  ../a55915760802260909n1c1f4cd2i18fb56ccafa96d83@mail.gmail.com/
Also on:    postgresql.org/message-id/a55915760802260909n1c1f4cd2i18fb56ccafa96d83@mail.gmail.com

 · 

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: rdeleonp@gmail.com, shavonne.marietta@studioform.it, teemu@torma.org
  Subject: Re: duplicate key violates unique constraint
  In-Reply-To: <a55915760802260909n1c1f4cd2i18fb56ccafa96d83@mail.gmail.com>

* 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