postgresql/src/backend/access
Thomas Munro ce6a71fa53 Use vectored I/O to fill new WAL segments.
Instead of making many block-sized write() calls to fill a new WAL file
with zeroes, make a smaller number of pwritev() calls (or various
emulations).  The actual number depends on the OS's IOV_MAX, which
PG_IOV_MAX currently caps at 32.  That means we'll write 256kB per call
on typical systems.  We may want to tune the number later with more
experience.

Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us>
Reviewed-by: Andres Freund <andres@anarazel.de>
Discussion: https://postgr.es/m/CA%2BhUKGJA%2Bu-220VONeoREBXJ9P3S94Y7J%2BkqCnTYmahvZJwM%3Dg%40mail.gmail.com
2021-01-11 15:28:31 +13:00
..
brin Update copyright for 2021 2021-01-02 13:06:25 -05:00
common Fix integer-overflow corner cases in substring() functions. 2021-01-04 18:32:44 -05:00
gin Update copyright for 2021 2021-01-02 13:06:25 -05:00
gist Update copyright for 2021 2021-01-02 13:06:25 -05:00
hash Replace remaining uses of "whitelist". 2021-01-05 14:00:16 +13:00
heap Update copyright for 2021 2021-01-02 13:06:25 -05:00
index Update copyright for 2021 2021-01-02 13:06:25 -05:00
nbtree Update copyright for 2021 2021-01-02 13:06:25 -05:00
rmgrdesc Standardize one aspect of rmgr desc output. 2021-01-04 19:46:11 -08:00
spgist Update copyright for 2021 2021-01-02 13:06:25 -05:00
table Update copyright for 2021 2021-01-02 13:06:25 -05:00
tablesample Update copyright for 2021 2021-01-02 13:06:25 -05:00
transam Use vectored I/O to fill new WAL segments. 2021-01-11 15:28:31 +13:00
Makefile Introduce access/{table.h, relation.h}, for generic functions from heapam.h. 2019-01-21 10:51:36 -08:00