diff options
| author | Tom Lane <tgl@sss.pgh.pa.us> | 2001-09-29 04:02:27 +0000 |
|---|---|---|
| committer | Tom Lane <tgl@sss.pgh.pa.us> | 2001-09-29 04:02:27 +0000 |
| commit | 499abb0c0f21cb861c5af1d49a06469f3cfcc1eb (patch) | |
| tree | 0af6262d9b6d1159315e93e90e69047b959ea5f5 /src/include/access/clog.h | |
| parent | 818fb55ac49b4b20e65d9899fc1784e54e86db58 (diff) | |
| download | postgresql-499abb0c0f21cb861c5af1d49a06469f3cfcc1eb.tar.gz | |
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/clog.h')
| -rw-r--r-- | src/include/access/clog.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/include/access/clog.h b/src/include/access/clog.h index 4e44e8036c..9bcd3a4294 100644 --- a/src/include/access/clog.h +++ b/src/include/access/clog.h @@ -6,7 +6,7 @@ * Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $Id: clog.h,v 1.1 2001/08/25 18:52:42 tgl Exp $ + * $Id: clog.h,v 1.2 2001/09/29 04:02:26 tgl Exp $ */ #ifndef CLOG_H #define CLOG_H @@ -24,6 +24,9 @@ typedef int XidStatus; #define TRANSACTION_STATUS_ABORTED 0x02 /* 0x03 is available without changing commit log space allocation */ +/* exported because lwlock.c needs it */ +#define NUM_CLOG_BUFFERS 8 + extern void TransactionIdSetStatus(TransactionId xid, XidStatus status); extern XidStatus TransactionIdGetStatus(TransactionId xid); |
