mirror of
https://github.com/postgres/postgres.git
synced 2025-08-24 09:27:52 +03:00
Implement prefetching via posix_fadvise() for bitmap index scans. A new
GUC variable effective_io_concurrency controls how many concurrent block prefetch requests will be issued. (The best way to handle this for plain index scans is still under debate, so that part is not applied yet --- tgl) Greg Stark
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
* for developers. If you edit any of these, be sure to do a *full*
|
||||
* rebuild (and an initdb if noted).
|
||||
*
|
||||
* $PostgreSQL: pgsql/src/include/pg_config_manual.h,v 1.36 2009/01/11 18:02:17 tgl Exp $
|
||||
* $PostgreSQL: pgsql/src/include/pg_config_manual.h,v 1.37 2009/01/12 05:10:45 tgl Exp $
|
||||
*------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
@@ -135,6 +135,15 @@
|
||||
#define USE_POSIX_FADVISE
|
||||
#endif
|
||||
|
||||
/*
|
||||
* USE_PREFETCH code should be compiled only if we have a way to implement
|
||||
* prefetching. (This is decoupled from USE_POSIX_FADVISE because there
|
||||
* might in future be support for alternative low-level prefetch APIs.)
|
||||
*/
|
||||
#ifdef USE_POSIX_FADVISE
|
||||
#define USE_PREFETCH
|
||||
#endif
|
||||
|
||||
/*
|
||||
* This is the default directory in which AF_UNIX socket files are
|
||||
* placed. Caution: changing this risks breaking your existing client
|
||||
|
Reference in New Issue
Block a user