mirror of
https://github.com/postgres/postgres.git
synced 2025-06-03 00:02:26 -04:00
Introduce a GUC and a tablespace option to control I/O prefetching, much like effective_io_concurrency, but for work that is done on behalf of many client sessions. Use the new setting in heapam.c instead of the hard-coded formula effective_io_concurrency + 10 introduced by commit 558a9165e08. Go with a default value of 10 for now, because it's a round number pretty close to the value used for that existing case. Discussion: https://postgr.es/m/CA%2BhUKGJUw08dPs_3EUcdO6M90GnjofPYrWp4YSLaBkgYwS-AqA%40mail.gmail.com
22 lines
672 B
C
22 lines
672 B
C
/*-------------------------------------------------------------------------
|
|
*
|
|
* spccache.h
|
|
* Tablespace cache.
|
|
*
|
|
* Portions Copyright (c) 1996-2020, PostgreSQL Global Development Group
|
|
* Portions Copyright (c) 1994, Regents of the University of California
|
|
*
|
|
* src/include/utils/spccache.h
|
|
*
|
|
*-------------------------------------------------------------------------
|
|
*/
|
|
#ifndef SPCCACHE_H
|
|
#define SPCCACHE_H
|
|
|
|
void get_tablespace_page_costs(Oid spcid, float8 *spc_random_page_cost,
|
|
float8 *spc_seq_page_cost);
|
|
int get_tablespace_io_concurrency(Oid spcid);
|
|
int get_tablespace_maintenance_io_concurrency(Oid spcid);
|
|
|
|
#endif /* SPCCACHE_H */
|