Use pg_pwrite() in more places.
authorThomas Munro <tmunro@postgresql.org>
Tue, 11 Feb 2020 04:22:37 +0000 (17:22 +1300)
committerThomas Munro <tmunro@postgresql.org>
Tue, 11 Feb 2020 04:50:22 +0000 (17:50 +1300)
commit701a51fd4e01dbbd02067d8f01905a04bc571131
treed450ebbcf4ed98d70e91ba2e9047c384227cbca1
parent2102ba4b586350957bf95b371432583239000164
Use pg_pwrite() in more places.

This removes some lseek() system calls.

Author: Thomas Munro
Reviewed-by: Andres Freund
Discussion: https://postgr.es/m/CA%2BhUKGJ%2BoHhnvqjn3%3DHro7xu-YDR8FPr0FL6LF35kHRX%3D_bUzg%40mail.gmail.com
contrib/pg_stat_statements/pg_stat_statements.c
src/backend/access/heap/rewriteheap.c
src/backend/replication/walreceiver.c
src/backend/utils/init/miscinit.c