aboutsummaryrefslogtreecommitdiff
path: root/src/include/storage/proc.h
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2002-10-31 21:34:17 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2002-10-31 21:34:17 +0000
commit55e4ef138cc68cffd12df9fc9e5587590473a074 (patch)
tree7f9e2f9a8c791d9f9659f132969a092501c3b143 /src/include/storage/proc.h
parent8a45a2e9b6c352061910c5f8a56caf6751ca2f2c (diff)
downloadpostgresql-55e4ef138cc68cffd12df9fc9e5587590473a074.tar.gz
postgresql-55e4ef138cc68cffd12df9fc9e5587590473a074.zip
Code review for statement_timeout patch. Fix some race conditions
between signal handler and enable/disable code, avoid accumulation of timing error due to trying to maintain remaining-time instead of absolute-end-time, disable timeout before commit not after.
Diffstat (limited to 'src/include/storage/proc.h')
-rw-r--r--src/include/storage/proc.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/include/storage/proc.h b/src/include/storage/proc.h
index dd817135999..5cc4b7c9685 100644
--- a/src/include/storage/proc.h
+++ b/src/include/storage/proc.h
@@ -7,7 +7,7 @@
* Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: proc.h,v 1.61 2002/10/21 18:57:34 petere Exp $
+ * $Id: proc.h,v 1.62 2002/10/31 21:34:17 tgl Exp $
*
*-------------------------------------------------------------------------
*/
@@ -86,8 +86,9 @@ typedef struct PROC_HDR
} PROC_HDR;
-/* configurable option */
+/* configurable options */
extern int DeadlockTimeout;
+extern int StatementTimeout;
/*
@@ -105,7 +106,6 @@ extern int ProcSleep(LOCKMETHODTABLE *lockMethodTable, LOCKMODE lockmode,
extern PGPROC *ProcWakeup(PGPROC *proc, int errType);
extern void ProcLockWakeup(LOCKMETHODTABLE *lockMethodTable, LOCK *lock);
extern bool LockWaitCancel(void);
-extern void CheckDeadLock(void);
extern void ProcWaitForSignal(void);
extern void ProcCancelWaitForSignal(void);