Skip to content

Commit 3b07182

Browse files
committed
Give a better error message when trying to change
"effective_io_concurrency" on systems without posix_fadvise().
1 parent 2faa8e2 commit 3b07182

File tree

1 file changed

+8
-2
lines changed
  • src/backend/utils/misc

1 file changed

+8
-2
lines changed

src/backend/utils/misc/guc.c

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
* Written by Peter Eisentraut <peter_e@gmx.net>.
1111
*
1212
* IDENTIFICATION
13-
* $PostgreSQL: pgsql/src/backend/utils/misc/guc.c,v 1.498 2009/04/02 03:51:43 tgl Exp $
13+
* $PostgreSQL: pgsql/src/backend/utils/misc/guc.c,v 1.499 2009/04/02 19:57:19 momjian Exp $
1414
*
1515
*--------------------------------------------------------------------
1616
*/
@@ -1713,7 +1713,13 @@ static struct config_int ConfigureNamesInt[] =
17131713
},
17141714

17151715
{
1716-
{"effective_io_concurrency", PGC_USERSET, RESOURCES,
1716+
{"effective_io_concurrency",
1717+
#ifdef USE_PREFETCH
1718+
PGC_USERSET,
1719+
#else
1720+
PGC_INTERNAL,
1721+
#endif
1722+
RESOURCES,
17171723
gettext_noop("Number of simultaneous requests that can be handled efficiently by the disk subsystem."),
17181724
gettext_noop("For RAID arrays, this should be approximately the number of drive spindles in the array.")
17191725
},

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy