Add lock_timeout configuration parameter.

Tom Lane <tgl@sss.pgh.pa.us>

Commit: d43837d03067487560af481474ae985df894f786
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2013-03-17T03:22:57Z
Releases: 9.3.0
Add lock_timeout configuration parameter.

This GUC allows limiting the time spent waiting to acquire any one
heavyweight lock.

In support of this, improve the recently-added timeout infrastructure
to permit efficiently enabling or disabling multiple timeouts at once.
That reduces the performance hit from turning on lock_timeout, though
it's still not zero.

Zoltán Böszörményi, reviewed by Tom Lane,
Stephen Frost, and Hari Babu

Files