summaryrefslogtreecommitdiff
path: root/src/include/access/transam.h
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2001-09-29 04:02:27 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2001-09-29 04:02:27 +0000
commit499abb0c0f21cb861c5af1d49a06469f3cfcc1eb (patch)
tree0af6262d9b6d1159315e93e90e69047b959ea5f5 /src/include/access/transam.h
parent818fb55ac49b4b20e65d9899fc1784e54e86db58 (diff)
Implement new 'lightweight lock manager' that's intermediate between
existing lock manager and spinlocks: it understands exclusive vs shared lock but has few other fancy features. Replace most uses of spinlocks with lightweight locks. All remaining uses of spinlocks have very short lock hold times (a few dozen instructions), so tweak spinlock backoff code to work efficiently given this assumption. All per my proposal on pghackers 26-Sep-01.
Diffstat (limited to 'src/include/access/transam.h')
-rw-r--r--src/include/access/transam.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/include/access/transam.h b/src/include/access/transam.h
index 5ce62d289f9..e6fda696915 100644
--- a/src/include/access/transam.h
+++ b/src/include/access/transam.h
@@ -7,15 +7,13 @@
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: transam.h,v 1.40 2001/08/26 16:56:00 tgl Exp $
+ * $Id: transam.h,v 1.41 2001/09/29 04:02:26 tgl Exp $
*
*-------------------------------------------------------------------------
*/
#ifndef TRANSAM_H
#define TRANSAM_H
-#include "storage/spin.h"
-
/* ----------------
* Special transaction ID values
@@ -122,8 +120,6 @@ extern void CheckMaxObjectId(Oid assigned_oid);
extern bool AMI_OVERRIDE;
/* in varsup.c */
-extern SPINLOCK OidGenLockId;
-extern SPINLOCK XidGenLockId;
extern VariableCache ShmemVariableCache;
#endif /* TRAMSAM_H */