postgresql/src/bin/pg_basebackup
Michael Paquier 28cc2976a9 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
2022-11-08 12:37:11 +09:00
..
po meson: Add initial version of meson based build system 2022-09-21 22:37:17 -07:00
t Message style improvements 2022-09-24 18:41:25 -04:00
.gitignore Rename user-facing tools with "xlog" in the name to say "wal". 2017-02-09 16:23:46 -05:00
Makefile Add support for zstd base backup compression. 2022-03-08 09:52:43 -05:00
bbstreamer.h Rename backup_compression.{c,h} to compression.{c,h} 2022-04-12 13:38:54 +09:00
bbstreamer_file.c Pre-beta mechanical code beautification. 2022-05-12 15:17:30 -04:00
bbstreamer_gzip.c Simplify handling of compression level with compression specifications 2022-09-14 12:16:57 +09:00
bbstreamer_inject.c Improve frontend error logging style. 2022-04-08 14:55:14 -04:00
bbstreamer_lz4.c Simplify handling of compression level with compression specifications 2022-09-14 12:16:57 +09:00
bbstreamer_tar.c Fix typos and grammar in code and test comments 2022-05-11 15:38:55 +09:00
bbstreamer_zstd.c Simplify handling of compression level with compression specifications 2022-09-14 12:16:57 +09:00
meson.build meson: Add windows resource files 2022-10-05 09:56:05 -07:00
nls.mk Revert "Use wildcards instead of manually-maintained file lists in */nls.mk." 2022-07-13 14:29:10 -04:00
pg_basebackup.c pg_basebackup: Fix cross-platform tablespace relocation. 2022-10-21 08:21:55 -04:00
pg_receivewal.c Message style improvements 2022-09-24 18:41:25 -04:00
pg_recvlogical.c Improve terminology 2022-09-23 21:18:17 -04:00
receivelog.c walmethods.c/h: Make WalWriteMethod more object-oriented. 2022-09-19 12:53:46 -04:00
receivelog.h Update copyright for 2022 2022-01-07 19:04:57 -05:00
streamutil.c Message style improvements 2022-09-24 18:41:25 -04:00
streamutil.h Harmonize more parameter names in bulk. 2022-09-20 13:09:30 -07:00
walmethods.c Use pg_pwrite_zeros() in walmethods.c 2022-11-08 12:37:11 +09:00
walmethods.h Harmonize more parameter names in bulk. 2022-09-20 13:09:30 -07:00