deadlock timeout?

Started by Micah Andersonover 25 years ago2 messagesgeneral
Jump to latest
#1Micah Anderson
micah@colltech.com

Hi,

Does anyone know what the postgresql option deadlock_timeout does? I
haven't been able to find any good docs. The config file
(/etc/postgresql/pg_options) just says its how long to wait before deciding
that there is a deadlock, but does this refer to idle connections or
situations where a query is blocked waiting for a lock? I thought timing
out idle connections might be useful in trouble shooting some postgres
problems that we are having given that we are seeing a steadily increasing
number of database connections. All these idle connections can't be
helping.

Thanks!
Micah

--
Micah Anderson
Collective Technologies
www.colltech.com

"To be and not to do is not to be at all"

#2Bruce Momjian
bruce@momjian.us
In reply to: Micah Anderson (#1)
Re: deadlock timeout?

Hi,

Does anyone know what the postgresql option deadlock_timeout does? I
haven't been able to find any good docs. The config file
(/etc/postgresql/pg_options) just says its how long to wait before deciding
that there is a deadlock, but does this refer to idle connections or
situations where a query is blocked waiting for a lock? I thought timing
out idle connections might be useful in trouble shooting some postgres
problems that we are having given that we are seeing a steadily increasing
number of database connections. All these idle connections can't be
helping.

I can't find that file inthe source tree, and the description is wrong.
The value is how quickly it will check for a deadlock while waiting for
a lock. It does not assume it has a deadlock because of any timeout.

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 853-3000
  +  If your life is a hard drive,     |  830 Blythe Avenue
  +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026