From e3f3d7f5c52dc8fcd879c511a4a69b664d8fa342 Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Thu, 2 Apr 2009 19:57:19 +0000 Subject: [PATCH] Give a better error message when trying to change "effective_io_concurrency" on systems without posix_fadvise(). --- src/backend/utils/misc/guc.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/backend/utils/misc/guc.c b/src/backend/utils/misc/guc.c index 7304f5c2b0..d7215e2c40 100644 --- a/src/backend/utils/misc/guc.c +++ b/src/backend/utils/misc/guc.c @@ -1713,7 +1713,13 @@ static struct config_int ConfigureNamesInt[] = }, { - {"effective_io_concurrency", PGC_USERSET, RESOURCES, + {"effective_io_concurrency", +#ifdef USE_PREFETCH + PGC_USERSET, +#else + PGC_INTERNAL, +#endif + RESOURCES, gettext_noop("Number of simultaneous requests that can be handled efficiently by the disk subsystem."), gettext_noop("For RAID arrays, this should be approximately the number of drive spindles in the array.") }, -- 2.39.5