diff options
| author | Tom Lane <tgl@sss.pgh.pa.us> | 2005-12-06 23:08:34 +0000 |
|---|---|---|
| committer | Tom Lane <tgl@sss.pgh.pa.us> | 2005-12-06 23:08:34 +0000 |
| commit | 887a7c61f630b743f12a06b859ac1d03d2fb2bb9 (patch) | |
| tree | 7554bb3c604e3e4f1a780b06c52f78bbbf73f8f2 /src/include/access/subtrans.h | |
| parent | 3001b4697d5233b5ea7b4612283e720835338d92 (diff) | |
| download | postgresql-887a7c61f630b743f12a06b859ac1d03d2fb2bb9.tar.gz | |
Get rid of slru.c's hardwired insistence on a fixed number of slots per
SLRU area. The number of slots is still a compile-time constant (someday
we might want to change that), but at least it's a different constant for
each SLRU area. Increase number of subtrans buffers to 32 based on
experimentation with a heavily subtrans-bashing test case, and increase
number of multixact member buffers to 16, since it's obviously silly for
it not to be at least twice the number of multixact offset buffers.
Diffstat (limited to 'src/include/access/subtrans.h')
| -rw-r--r-- | src/include/access/subtrans.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/include/access/subtrans.h b/src/include/access/subtrans.h index cdd16e90cb..e9f55963c9 100644 --- a/src/include/access/subtrans.h +++ b/src/include/access/subtrans.h @@ -6,11 +6,14 @@ * Portions Copyright (c) 1996-2005, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $PostgreSQL: pgsql/src/include/access/subtrans.h,v 1.7 2005/08/20 23:26:29 tgl Exp $ + * $PostgreSQL: pgsql/src/include/access/subtrans.h,v 1.8 2005/12/06 23:08:34 tgl Exp $ */ #ifndef SUBTRANS_H #define SUBTRANS_H +/* Number of SLRU buffers to use for subtrans */ +#define NUM_SUBTRANS_BUFFERS 32 + extern void SubTransSetParent(TransactionId xid, TransactionId parent); extern TransactionId SubTransGetParent(TransactionId xid); extern TransactionId SubTransGetTopmostTransaction(TransactionId xid); |
