Re: insert deadlock

From: Greg Stark <gsstark(at)mit(dot)edu>
To: Brian Cox <bcox(at)wilytech(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: insert deadlock
Date: 2005-12-06 21:24:34
Message-ID: 877jahkjfx.fsf@stark.xeocode.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general


Brian Cox <bcox(at)wilytech(dot)com> writes:

> Thread 1 does 1+ inserts into Table A and 1 update of Table B in a single
> transaction.
> This thread runs on demand.
>
> Thread 2 does 1+ inserts into Table C in a separate transaction. This thread
> runs once an hour.

I suspect you'll have to include more information than this to get an answer.
At least the \d output for tables A B and C including the foreign keys and
triggers.

Note that you need to worry not just about foreign key columns in tables A, B,
and C, but also any other table that has a foreign key column that refers to
these tables.

--
greg

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Mikael Carneholm 2005-12-06 21:40:05 Re: Graphical modelling tool
Previous Message Tom Lane 2005-12-06 21:16:11 Re: insert deadlock