Replace magic constants for seek() calls in perl scripts
Michael Paquier <michael@paquier.xyz>
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
Files
| Path | Change | +/− |
|---|---|---|
| contrib/amcheck/t/001_verify_heapam.pl | modified | +2 −1 |
| src/bin/pg_amcheck/t/003_check.pl | modified | +3 −1 |
| src/bin/pg_amcheck/t/004_verify_heapam.pl | modified | +3 −2 |
| src/bin/pg_basebackup/t/010_pg_basebackup.pl | modified | +4 −3 |
| src/bin/pg_checksums/t/002_actions.pl | modified | +3 −1 |
Discussion
- File truncation within PostgresNode::issues_sql_like() wrong on Windows 11 messages · 2021-04-14 → 2021-04-19