pgsql: Fix cross-version compatibility checks of pg_verify_checksums

From: Michael Paquier <michael(at)paquier(dot)xyz>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Fix cross-version compatibility checks of pg_verify_checksums
Date: 2019-03-13 00:54:24
Message-ID: E1h3sA4-0007KC-Vj@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Fix cross-version compatibility checks of pg_verify_checksums

pg_verify_checksums performs a read of the control file, and the data it
fetches should be from a data folder compatible with the major version
of Postgres the binary has been compiled with, but we never actually
checked that compatibility.

Reported-by: Sergei Kornilov
Author: Michael Paquier
Reviewed-by: Sergei Kornilov
Discussion: https://postgr.es/m/155231347133.16480.11453587097036807558.pgcf@coridan.postgresql.org
Backpatch-through: 11

Branch
------
REL_11_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/501f58359b59af1ffb58f9fbd6f97c4b226c69da

Modified Files
--------------
src/bin/pg_verify_checksums/pg_verify_checksums.c | 7 +++++++
1 file changed, 7 insertions(+)

Browse pgsql-committers by date

  From Date Subject
Next Message Michael Paquier 2019-03-13 01:44:47 pgsql: Rename pg_verify_checksums to pg_checksums
Previous Message Peter Geoghegan 2019-03-12 23:44:36 pgsql: Correct obsolete nbtree page split comment.