Fix some libpq_pipeline test problems
authorAlvaro Herrera <alvherre@alvh.no-ip.org>
Wed, 31 Mar 2021 18:13:42 +0000 (15:13 -0300)
committerAlvaro Herrera <alvherre@alvh.no-ip.org>
Wed, 31 Mar 2021 18:14:23 +0000 (15:14 -0300)
commitdb973ffb3ca43e65a0bf15175a35184a53bf977d
tree0d0b1d625481b97bb0c1622ff85f3b09d70366fd
parentb12bd4869b5e64b742a69ca07915e2f77f85a9ae
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.
src/test/modules/libpq_pipeline/libpq_pipeline.c
src/test/modules/libpq_pipeline/t/001_libpq_pipeline.pl
src/test/modules/libpq_pipeline/traces/pipeline_abort.trace