diff options
| author | Tom Lane <tgl@sss.pgh.pa.us> | 2013-03-16 23:22:17 -0400 |
|---|---|---|
| committer | Tom Lane <tgl@sss.pgh.pa.us> | 2013-03-16 23:22:57 -0400 |
| commit | d43837d03067487560af481474ae985df894f786 (patch) | |
| tree | 7289d038a184fa3dc59195aaa27538714ea85ad9 /src/include/storage | |
| parent | d2bef5f7db5f3afdbbb3f58b8eff49f0bc7ef790 (diff) | |
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
Diffstat (limited to 'src/include/storage')
| -rw-r--r-- | src/include/storage/proc.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/include/storage/proc.h b/src/include/storage/proc.h index d571c35ab6b..3b04d3c1fb1 100644 --- a/src/include/storage/proc.h +++ b/src/include/storage/proc.h @@ -168,8 +168,8 @@ typedef struct PGXACT uint8 vacuumFlags; /* vacuum-related flags, see above */ bool overflowed; - bool delayChkpt; /* true if this proc delays checkpoint start */ - /* previously called InCommit */ + bool delayChkpt; /* true if this proc delays checkpoint start; + * previously called InCommit */ uint8 nxids; } PGXACT; @@ -222,6 +222,7 @@ extern PGPROC *PreparedXactProcs; /* configurable options */ extern int DeadlockTimeout; extern int StatementTimeout; +extern int LockTimeout; extern bool log_lock_waits; |
