pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Ravi <Ravindra-Prasad@worldnet.att.net>
To: pgsql-interfaces@postgresql.org
Subject: postgre and sqlerror handling
Date: Mon, 8 Nov 1999 14:51:55 -0500
Message-ID: <000d01bf2a22$c5ac95e0$4f619ca7@npgm063.chubb.com> (raw)

Hello All
 
  I am using postgresql in a 'C' program running on Linux. It's a simple program which inserts a row. This insert should give error. However in spite of me having error handling when I run this program it generates hundreds of the following error message:

"cannot insert duplicate key into a unique index 
 NOTICE: UserAbortTransactionBlock and not in in-progress state."

I do not know why it does not use err handler and stop after first error.

2) Also when I use goto err_handler in my code it gives compile error. Can ayone suggets the correct syntax.

Thanks All
Ravi

Message-ID: <000d01bf2a22$c5ac95e0$4f619ca7@npgm063.chubb.com>
Permalink:  ../000d01bf2a22$c5ac95e0$4f619ca7@npgm063.chubb.com/
Also on:    postgresql.org/message-id/000d01bf2a22$c5ac95e0$4f619ca7@npgm063.chubb.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-interfaces@postgresql.org
  Cc: Ravindra-Prasad@worldnet.att.net
  Subject: Re: postgre and sqlerror handling
  In-Reply-To: <000d01bf2a22$c5ac95e0$4f619ca7@npgm063.chubb.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