pgsql: Fix matching check in recovery test 042_low_level_backup

From: Michael Paquier <michael(at)paquier(dot)xyz>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Fix matching check in recovery test 042_low_level_backup
Date: 2025-10-17 04:06:40
Message-ID: E1v9bjk-0025ST-1g@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Fix matching check in recovery test 042_low_level_backup

042_low_level_backup compared the result of a query two times with a
comparison operator based on an integer, while the result should be
compared with a string.

The outcome of the tests is currently not impacted by this change.
However, it could be possible that the tests fail to detect future
issues if the query results become different, for some reason.

Oversight in 99b4a63bef94.

Author: Sadhuprasad Patro <b(dot)sadhu(at)gmail(dot)com>
Discussion: https://postgr.es/m/CAFF0-CHhwNx_Cv2uy7tKjODUbeOgPrJpW4Rpf1jqB16_1bU2sg@mail.gmail.com
Backpatch-through: 17

Branch
------
REL_18_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/3a7225ed37fc0819f689e17435dc590fd2b8980d

Modified Files
--------------
src/test/recovery/t/042_low_level_backup.pl | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Fujii Masao 2025-10-17 05:04:57 pgsql: doc: Clarify when backend_xmin in pg_stat_replication can be NUL
Previous Message Michael Paquier 2025-10-17 04:01:32 pgsql: pg_createsubscriber: Fix matching check in TAP test