diff options
author | Michael Paquier <michael@paquier.xyz> | 2022-11-08 12:37:11 +0900 |
---|---|---|
committer | Michael Paquier <michael@paquier.xyz> | 2022-11-08 12:37:11 +0900 |
commit | 28cc2976a9cf0ed661dbc55f49f669192cce1c89 (patch) | |
tree | fff307f19ccd3bdb8483df9cc08510a275d42929 /src/tutorial/complex.c | |
parent | 3bdbdf5d06f2179d4c17926d77ff734ea9e7d525 (diff) | |
download | postgresql-28cc2976a9cf0ed661dbc55f49f669192cce1c89.tar.gz postgresql-28cc2976a9cf0ed661dbc55f49f669192cce1c89.zip |
Use pg_pwrite_zeros() in walmethods.c
This change impacts pg_receivewal and pg_basebackup, for the pre-padding
with zeros of all the new non-compressed WAL segments, so as the code is
more robust on partial writes. This makes the code consistent with the
backend (XLogFileInitInternal) when wal_init_zeros is enabled for the
WAL segment initialization.
Author: Bharath Rupireddy
Reviewed-by: Nathan Bossart, Andres Freund, Thomas Munro, Michael
Paquier
Discussion: https://postgr.es/m/CALj2ACUq7nAb7=bJNbK3yYmp-SZhJcXFR_pLk8un6XgDzDF3OA@mail.gmail.com
Diffstat (limited to 'src/tutorial/complex.c')
0 files changed, 0 insertions, 0 deletions