From: Michael Paquier <michael@paquier.xyz>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Improve range checks of options for pg_test_fsync and pg_test_ti
Date: Mon, 28 Sep 2020 01:15:13 +0000
Message-ID: <E1kMhl3-00076X-QM@gemulon.postgresql.org> (raw)
Improve range checks of options for pg_test_fsync and pg_test_timing
Both tools never had safeguard checks for the options provided, and it
was possible to make pg_test_fsync run an infinite amount of time or
pass down buggy values to pg_test_timing.
These behaviors have existed for a long time, with no actual complaints,
so no backpatch is done. Basic TAP tests are introduced for both tools.
Author: Michael Paquier
Reviewed-by: Peter Eisentraut
Discussion: https://postgr.es/m/20200806062759.GE16470@paquier.xyz
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/4d29e6dbd0bb6d8c3a48d0f3c7d65dc1def1b07e
Modified Files
--------------
src/bin/pg_test_fsync/.gitignore | 2 ++
src/bin/pg_test_fsync/Makefile | 6 ++++
src/bin/pg_test_fsync/pg_test_fsync.c | 28 +++++++++++++++---
src/bin/pg_test_fsync/t/001_basic.pl | 25 ++++++++++++++++
src/bin/pg_test_timing/.gitignore | 2 ++
src/bin/pg_test_timing/Makefile | 6 ++++
src/bin/pg_test_timing/pg_test_timing.c | 51 ++++++++++++++++++++-------------
src/bin/pg_test_timing/t/001_basic.pl | 25 ++++++++++++++++
8 files changed, 121 insertions(+), 24 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: Improve range checks of options for pg_test_fsync and pg_test_ti
In-Reply-To: <E1kMhl3-00076X-QM@gemulon.postgresql.org>
References: <E1kMhl3-00076X-QM@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