aboutsummaryrefslogtreecommitdiff
path: root/src/include/miscadmin.h
diff options
context:
space:
mode:
authorJan Wieck <JanWieck@Yahoo.com>2003-11-13 00:40:02 +0000
committerJan Wieck <JanWieck@Yahoo.com>2003-11-13 00:40:02 +0000
commit48adc0b34b3de911eccb2a80c78b137aa631f199 (patch)
tree49f62ee74ea9a3e86854bcab68f4ff4b061cda39 /src/include/miscadmin.h
parent27e8ef05350ee9e681ed5d456526ac5abf5cd889 (diff)
downloadpostgresql-48adc0b34b3de911eccb2a80c78b137aa631f199.tar.gz
postgresql-48adc0b34b3de911eccb2a80c78b137aa631f199.zip
Replacement of the buffer replacement strategy with an ARC
algorithm adopted for PostgreSQL. Jan
Diffstat (limited to 'src/include/miscadmin.h')
-rw-r--r--src/include/miscadmin.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/include/miscadmin.h b/src/include/miscadmin.h
index 1c1c1d34519..492f16cc115 100644
--- a/src/include/miscadmin.h
+++ b/src/include/miscadmin.h
@@ -12,7 +12,7 @@
* Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: miscadmin.h,v 1.134 2003/09/24 18:54:01 tgl Exp $
+ * $Id: miscadmin.h,v 1.135 2003/11/13 00:40:01 wieck Exp $
*
* NOTES
* some of the information in this file should be moved to
@@ -96,6 +96,13 @@ extern void ProcessInterrupts(void);
CritSectionCount--; \
} while(0)
+#define PG_DELAY(_msec) \
+{ \
+ struct timeval delay; \
+ delay.tv_sec = (_msec) / 1000; \
+ delay.tv_usec = ((_msec) % 1000) * 1000; \
+ (void) select(0, NULL, NULL, NULL, &delay); \
+}
/*****************************************************************************
* globals.h -- *