pgsql: pg_basebackup: Fix check for MINIMUM_VERSION_FOR_WAL_SUMMARIES

From: Michael Paquier <michael(at)paquier(dot)xyz>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: pg_basebackup: Fix check for MINIMUM_VERSION_FOR_WAL_SUMMARIES
Date: 2024-02-04 01:53:14
Message-ID: E1rWRh4-004Yn8-4q@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

pg_basebackup: Fix check for MINIMUM_VERSION_FOR_WAL_SUMMARIES

MINIMUM_VERSION_FOR_WAL_SUMMARIES is used to check if the directory
pg_wal/summaries/ should be created in a base backup, but its condition
was reversed: pg_wal/summaries/ would be created when taking base
backups from backends of v16 and older versions, but it should be
created in base backups taken from backends of v17 and newer versions.

Author: Artur Zakirov
Reviewed-by: Yugo Nagata, Nazir Bilal Yavuz
Discussion: https://postgr.es/m/CAKNkYnzkkQ0gb_ZmLTY0r2-qV1q6imXgcCWxdA6UoA6yJkujGg@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/c717525035d36e10d27ca045887bbfcc57e98e9e

Modified Files
--------------
src/bin/pg_basebackup/pg_basebackup.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Alvaro Herrera 2024-02-04 15:23:05 pgsql: libpq: Add pqReleaseConnHosts function
Previous Message Alexander Korotkov 2024-02-02 23:51:28 pgsql: Improve documentation for COPY ... ON_ERROR ...