| From: | "scott(dot)marlowe" <scott(dot)marlowe(at)ihs(dot)com> |
|---|---|
| To: | "Nikhil G(dot) Daddikar" <ngd(at)celoxis(dot)com> |
| Cc: | pggeneral <pgsql-general(at)postgresql(dot)org> |
| Subject: | Re: Deadlock |
| Date: | 2002-10-04 16:07:57 |
| Message-ID: | Pine.LNX.4.33.0210041007290.9386-100000@css120.ihs.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general |
On Thu, 3 Oct 2002, Nikhil G. Daddikar wrote:
> While updating database (7.1.3) thro' JDBC I get a deadlock error :
>
> Exception Message: ERROR: Deadlock detected.
> See the lock(l) manual page for a possible cause.
>
> As far as i can see I am not doing anything which can cause such a thing, everything is pretty straight forward. Sometimes I get:
>
> Cannot insert a duplicate key into unique index db_security_desc_object_id_key
>
> I've looked at the code and these things shouldn't be happening, I am sure the mistake is mine but don't know how to go about debugging it. It happens only sometimes.
>
> I do have unique key constrains on the table.
>
> Any help will be appreciated.
Have you reset a sequence counter lately maybe? Or is the JDBC trying to
set the sequence number by itself instead of letting postgresql do it?
| From | Date | Subject | |
|---|---|---|---|
| Next Message | scott.marlowe | 2002-10-04 16:08:54 | Re: [SQL] arrays |
| Previous Message | scott.marlowe | 2002-10-04 16:06:38 | Re: transactions |