Re: deadlock timeout? - Mailing list pgsql-general

From Bruce Momjian
Subject Re: deadlock timeout?
Date
Msg-id 200011102257.RAA10253@candle.pha.pa.us
Whole thread Raw
In response to deadlock timeout?  (Micah Anderson <micah@colltech.com>)
List pgsql-general
> 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

pgsql-general by date:

Previous
From: Philip Hallstrom
Date:
Subject: What does this mean? "NOTICE: AbortTransaction and not in in-progress state"
Next
From: Tom Lane
Date:
Subject: Re: What does this mean? "NOTICE: AbortTransaction and not in in-progress state"