From: | Michael Paquier <michael(at)paquier(dot)xyz> |
---|---|
To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
Subject: | pgsql: Use pg_pwrite_zeros() in walmethods.c |
Date: | 2022-11-08 03:40:05 |
Message-ID: | E1osFT2-000746-Ut@gemulon.postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers |
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
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/28cc2976a9cf0ed661dbc55f49f669192cce1c89
Modified Files
--------------
src/bin/pg_basebackup/walmethods.c | 23 +++++++++++------------
1 file changed, 11 insertions(+), 12 deletions(-)
From | Date | Subject | |
---|---|---|---|
Next Message | Michael Paquier | 2022-11-08 05:21:35 | pgsql: psql: Add information in \d+ about foreign partitions and child |
Previous Message | Michael Paquier | 2022-11-08 03:24:24 | pgsql: Introduce pg_pwrite_zeros() in fileutils.c |