Re: trigger insert duplicate rows question

From: Martijn van Oosterhout <kleptog(at)svana(dot)org>
To: T(dot)R(dot)Missner(at)Level3(dot)com
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: trigger insert duplicate rows question
Date: 2001-09-26 04:57:16
Message-ID: 20010926145716.B25536@svana.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Tue, Sep 25, 2001 at 10:39:05PM -0600, T(dot)R(dot)Missner(at)Level3(dot)com wrote:
> Can I capture it in the procedure code?

I don't know about JDBC but I'm pretty sure the C library has a callback
function to deal with NOTICEs from the server, thus allowing you to suppress
them.

> Any other suggestions?

Don't try to insert so many duplicate rows? This may not be possible in your
application.

> Is there a way to get a return from the insert statement in the prodecure?

After you do an insert the result tells you the number of rows inserted. I
beleive this can be used to see if the insert succeeded.

HTH,
--
Martijn van Oosterhout <kleptog(at)svana(dot)org>
http://svana.org/kleptog/
> Magnetism, electricity and motion are like a three-for-two special offer:
> if you have two of them, the third one comes free.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2001-09-26 05:23:18 Re: trigger compile problem
Previous Message Martijn van Oosterhout 2001-09-26 04:52:25 Re: WHERE CLAUSE