From: Alvaro Herrera <alvherre@alvh.no-ip.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Fix some libpq_pipeline test problems
Date: Wed, 31 Mar 2021 18:16:09 +0000
Message-ID: <E1lRfNx-0002vz-PX@gemulon.postgresql.org> (raw)
Fix some libpq_pipeline test problems
Test pipeline_abort was not checking that it got the rows it expected in
one mode; make it do so. This doesn't fix the actual problem (no idea
what that is, yet) but at least it should make it more obvious rather
than being visible only as a difference in the trace output.
While at it, fix other infelicities in the test:
* I reversed the order of result vs. expected in like().
* The output traces from -t are being put in the log dir, which means
the buildfarm script uselessly captures them. Put them in a separate
dir tmp_check/traces instead, to avoid cluttering the buildfarm results.
* Test pipelined_insert was using too large a row count. Reduce that a
tad and add a filler column to make each insert a little bulkier, while
still keeping enough that a buffer is filled and we have to switch mode.
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/db973ffb3ca43e65a0bf15175a35184a53bf977d
Modified Files
--------------
src/test/modules/libpq_pipeline/libpq_pipeline.c | 33 +++++++++++++++-------
.../modules/libpq_pipeline/t/001_libpq_pipeline.pl | 8 ++++--
.../libpq_pipeline/traces/pipeline_abort.trace | 8 +++---
3 files changed, 32 insertions(+), 17 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: alvherre@alvh.no-ip.org
Subject: Re: pgsql: Fix some libpq_pipeline test problems
In-Reply-To: <E1lRfNx-0002vz-PX@gemulon.postgresql.org>
References: <E1lRfNx-0002vz-PX@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