Unix Technical Forum

deadlock priority?

This is a discussion on deadlock priority? within the Pgsql General forums, part of the PostgreSQL category; --> Hi. I have a query that does some batch deletes and inserts into a table. It runs for 2-3 ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > Pgsql General

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-10-2008, 12:17 AM
Sergei Shelukhin
 
Posts: n/a
Default deadlock priority?

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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-10-2008, 12:17 AM
Sergei Shelukhin
 
Posts: n/a
Default Re: deadlock priority?

Hmm... any ideas?

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-10-2008, 12:17 AM
Alvaro Herrera
 
Posts: n/a
Default Re: deadlock priority?

Sergei Shelukhin escribió:
> 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.


What Pg version are you using?

--
Alvaro Herrera http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.

---------------------------(end of broadcast)---------------------------
TIP 4: Have you searched our list archives?

http://archives.postgresql.org/

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 04-10-2008, 12:17 AM
Sergei Shelukhin
 
Posts: n/a
Default Re: deadlock priority?

Alvaro Herrera wrote:
> Sergei Shelukhin escribió:
>
>> 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.
>>

>
> What Pg version are you using?
>
>

8.2

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 08:20 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com