Add some basic tests for progress reporting of COPY

Michael Paquier <michael@paquier.xyz>

Commit: 15639d5e8f6f278219681fec8a5668a92fb7e874
Author: Michael Paquier <michael@paquier.xyz>
Date: 2021-03-16T00:55:43Z
Releases: 14.0
Add some basic tests for progress reporting of COPY

This tests some basic features for progress reporting of COPY, relying
on an INSERT trigger that gets fired when doing COPY FROM with a file or
stdin, checking for sizes, number of tuples processed, and number of
tuples excluded by a WHERE clause.

Author: Josef Šimánek, Matthias van de Meent
Reviewed-by: Michael Paquier, Justin Pryzby, Bharath Rupireddy, Tomas
Vondra
Discussion: https://postgr.es/m/CAEze2WiOcgdH4aQA8NtZq-4dgvnJzp8PohdeKchPkhMY-jWZXA@mail.gmail.com

Files

PathChange+/−
src/test/regress/input/copy.source modified +62 −0
src/test/regress/output/copy.source modified +54 −0

Discussion