pgsql: Replace magic constants for seek() calls in perl scripts - Mailing list pgsql-committers

From Michael Paquier
Subject pgsql: Replace magic constants for seek() calls in perl scripts
Date
Msg-id E1lYIW4-0005kL-Au@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
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(-)


pgsql-committers by date:

Previous
From: Thomas Munro
Date:
Subject: Re: pgsql: Use SIGURG rather than SIGUSR1 for latches.
Next
From: Michael Paquier
Date:
Subject: pgsql: Fix typos and grammar in comments and docs