Re: how to catch the error in procedure ?

From: Richard Huxton <dev(at)archonet(dot)com>
To: wlxyk(at)vip(dot)163(dot)com, "pgsql-general" <pgsql-general(at)postgresql(dot)org>
Subject: Re: how to catch the error in procedure ?
Date: 2004-01-16 09:41:16
Message-ID: 200401160941.16268.dev@archonet.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Friday 16 January 2004 04:50, LitelWang wrote:
> I need catch the error when my insert clause violate the
> primary key .How to write in the server function ?
> Thanks for any advice .

You can't (at the moment). An error terminates a transaction immediately in
PG's current model.

--
Richard Huxton
Archonet Ltd

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message David Garamond 2004-01-16 09:42:36 Re: fixed-length row
Previous Message Ritu Khetan 2004-01-16 09:18:48 Newbie to Postgres - Urgent query