deadlock priority?

From: Sergei Shelukhin <realgeek(at)gmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: deadlock priority?
Date: 2008-01-04 17:27:28
Message-ID: 1d2408fe-e3cb-4a75-802a-6e1d7d1120e5@i72g2000hsd.googlegroups.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi. I have a query that does some batch deletes and inserts into a
table. It runs for 2-3 minutes when the application that uses the
database is in production with users doing stuff.
Recently I have noticed that this query is a frequent victim of
deadlocks.

Is there any way to set a deadlock priority of this transaction or
some other setting so that it is never chosen as a deadlock victim if
only one instance of the transaction is running at the same time? All
other accesses to the table may be killed because of the deadlock but
not this query.

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Kyle Wilcox 2008-01-04 17:46:52 Re: Fail to connect after server crash
Previous Message Scott Marlowe 2008-01-04 17:09:13 Re: Fail to connect after server crash