From: Michael Paquier <michael@paquier.xyz>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Replace magic constants for seek() calls in perl scripts
Date: Mon, 19 Apr 2021 01:15:56 +0000
Message-ID: <E1lYIW4-0005kL-Au@gemulon.postgresql.org> (raw)
Replace magic constants for seek() calls in perl scripts
A couple of tests have been using 0 as magic constant while SEEK_SET can
be used instead. This makes the code easier to understand, and more
consistent with the changes done in 3c5b068.
Per discussion with Andrew Dunstan.
Discussion: https://postgr.es/m/YHrc24AgJQ6tQ1q0@paquier.xyz
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/c731f9187b5fd7038b04ba60703d3cace1806366
Modified Files
--------------
contrib/amcheck/t/001_verify_heapam.pl | 3 ++-
src/bin/pg_amcheck/t/003_check.pl | 4 +++-
src/bin/pg_amcheck/t/004_verify_heapam.pl | 5 +++--
src/bin/pg_basebackup/t/010_pg_basebackup.pl | 7 ++++---
src/bin/pg_checksums/t/002_actions.pl | 4 +++-
5 files changed, 15 insertions(+), 8 deletions(-)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-committers@postgresql.org
Cc: michael@paquier.xyz
Subject: Re: pgsql: Replace magic constants for seek() calls in perl scripts
In-Reply-To: <E1lYIW4-0005kL-Au@gemulon.postgresql.org>
References: <E1lYIW4-0005kL-Au@gemulon.postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox