Re: Simple SQL INSERT to avoid duplication failed: why?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Carlo Stonebanks" <stonec(dot)register(at)sympatico(dot)ca>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Simple SQL INSERT to avoid duplication failed: why?
Date: 2013-04-25 21:06:29
Message-ID: 22217.1366923989@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

"Carlo Stonebanks" <stonec(dot)register(at)sympatico(dot)ca> writes:
> Ok, I tried to be clever and I wrote code to avoid inserting duplicate data.
> The calling function has a try-catch to recover from this, but I am curious
> as to why it failed:

There's nothing obviously wrong with that, which means the issue is in
something you didn't show us. Care to assemble a self-contained
example?

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Merlin Moncure 2013-04-25 22:25:24 Re: is there a way to deliver an array over column from a query window?
Previous Message Carlo Stonebanks 2013-04-25 19:42:24 Simple SQL INSERT to avoid duplication failed: why?