deadlock_timeout

Started by Simon Riggsover 17 years ago4 messages
#1Simon Riggs
simon@2ndquadrant.com

Why is deadlock_timeout set at SIGHUP?

If it effects statement behaviour it ought to be a USERSET. Using CPU
time isn't a problem we protect against anywhere else.

I'd like to be able to set deadlock-prone transactions lower, yet keep a
fairly high setting for others.

--
Simon Riggs www.2ndQuadrant.com
PostgreSQL Training, Services and Support

#2Tom Lane
tgl@sss.pgh.pa.us
In reply to: Simon Riggs (#1)
Re: deadlock_timeout

Simon Riggs <simon@2ndquadrant.com> writes:

Why is deadlock_timeout set at SIGHUP?

Because it's not clear what the behavior would be like if different
backends had different settings ... except that it'd probably be
surprising.

regards, tom lane

#3Simon Riggs
simon@2ndquadrant.com
In reply to: Tom Lane (#2)
Re: deadlock_timeout

On Mon, 2008-07-07 at 11:16 -0400, Tom Lane wrote:

Simon Riggs <simon@2ndquadrant.com> writes:

Why is deadlock_timeout set at SIGHUP?

Because it's not clear what the behavior would be like if different
backends had different settings ... except that it'd probably be
surprising.

Yeh, agreed. I was thinking to set the deadlock_timeout the same for all
people running the deadlock-prone transactions and set it higher for
others.

--
Simon Riggs www.2ndQuadrant.com
PostgreSQL Training, Services and Support

#4Bruce Momjian
bruce@momjian.us
In reply to: Tom Lane (#2)
Re: deadlock_timeout

Tom Lane wrote:

Simon Riggs <simon@2ndquadrant.com> writes:

Why is deadlock_timeout set at SIGHUP?

Because it's not clear what the behavior would be like if different
backends had different settings ... except that it'd probably be
surprising.

I have added a code comment explaining this.

--
Bruce Momjian <bruce@momjian.us> http://momjian.us
EnterpriseDB http://enterprisedb.com

+ If your life is a hard drive, Christ can be your backup. +