aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>2006-06-16 04:11:48 +0000
committerBruce Momjian <bruce@momjian.us>2006-06-16 04:11:48 +0000
commit40bc06fa1655776537b1ce64a58a7cc0daffe5e1 (patch)
tree6fbb760bc1db22ae3c0bbb925af23d8d535e3ada /src
parent91fc80d0d35877e665b1741a6a46c46145a9aad6 (diff)
downloadpostgresql-40bc06fa1655776537b1ce64a58a7cc0daffe5e1.tar.gz
postgresql-40bc06fa1655776537b1ce64a58a7cc0daffe5e1.zip
Test for POSIX_FADV_DONTNEED to use posix_fadvise().
Diffstat (limited to 'src')
-rw-r--r--src/backend/access/transam/xlog.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/backend/access/transam/xlog.c b/src/backend/access/transam/xlog.c
index 49e71aa12a4..57a8d1833d8 100644
--- a/src/backend/access/transam/xlog.c
+++ b/src/backend/access/transam/xlog.c
@@ -7,7 +7,7 @@
* Portions Copyright (c) 1996-2006, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $PostgreSQL: pgsql/src/backend/access/transam/xlog.c,v 1.238 2006/06/15 19:15:00 momjian Exp $
+ * $PostgreSQL: pgsql/src/backend/access/transam/xlog.c,v 1.239 2006/06/16 04:11:48 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@@ -2147,7 +2147,7 @@ XLogFileClose(void)
{
Assert(openLogFile >= 0);
-#ifdef _POSIX_ADVISORY_INFO
+#ifdef POSIX_FADV_DONTNEED
/*
* WAL caches will not be accessed in the future, so we advise OS to
* free them. But we will not do so if WAL archiving is active,