Re: "duplicate key value": version 8.4 vs 8.1 - Mailing list pgsql-novice

From Tom Lane
Subject Re: "duplicate key value": version 8.4 vs 8.1
Date
Msg-id 9996.1287628571@sss.pgh.pa.us
Whole thread Raw
In response to Re: "duplicate key value": version 8.4 vs 8.1  (mountain oaf <mountainoaf@gmail.com>)
Responses Re: "duplicate key value": version 8.4 vs 8.1  (mountain oaf <mountainoaf@gmail.com>)
List pgsql-novice
mountain oaf <mountainoaf@gmail.com> writes:
>> AFAICS the ecpg code around that hasn't changed since 8.1, so I think
>> your assumption is in error. �You might try looking into the server
>> log to see what it thinks is happening.

> I've just done a test on the 8.1.2 database where I purposely added a
> duplicate record and the sqlca.sqlcode returned a -400 error.

So, the server is returning some error code, but it's not 23505.
Again, I'd suggest looking at the server log to see what it thinks
is happening.  My bet is that you're trying to use some feature
that doesn't exist in 8.1 ...

            regards, tom lane

pgsql-novice by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: Asynchronous I/O in Postgres
Next
From: mountain oaf
Date:
Subject: Re: "duplicate key value": version 8.4 vs 8.1