From 887a7c61f630b743f12a06b859ac1d03d2fb2bb9 Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Tue, 6 Dec 2005 23:08:34 +0000 Subject: 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. --- src/include/access/clog.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/include/access/clog.h') diff --git a/src/include/access/clog.h b/src/include/access/clog.h index f04eb02a58d..3eda52a12ab 100644 --- a/src/include/access/clog.h +++ b/src/include/access/clog.h @@ -6,7 +6,7 @@ * Portions Copyright (c) 1996-2005, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $PostgreSQL: pgsql/src/include/access/clog.h,v 1.14 2005/08/20 23:26:29 tgl Exp $ + * $PostgreSQL: pgsql/src/include/access/clog.h,v 1.15 2005/12/06 23:08:34 tgl Exp $ */ #ifndef CLOG_H #define CLOG_H @@ -28,6 +28,10 @@ typedef int XidStatus; #define TRANSACTION_STATUS_SUB_COMMITTED 0x03 +/* Number of SLRU buffers to use for clog */ +#define NUM_CLOG_BUFFERS 8 + + extern void TransactionIdSetStatus(TransactionId xid, XidStatus status); extern XidStatus TransactionIdGetStatus(TransactionId xid); -- cgit v1.2.3