Add support for more progress reporting in COPY
authorMichael Paquier <michael@paquier.xyz>
Tue, 9 Mar 2021 05:21:03 +0000 (14:21 +0900)
committerMichael Paquier <michael@paquier.xyz>
Tue, 9 Mar 2021 05:21:03 +0000 (14:21 +0900)
commit9d2d45700928d49212fb7ed140feeaebe3a6014f
tree88c79348c8b63167cae1cf4636185cc48e24785b
parentf9264d1524baa19e4a0528f033681ef16f61b137
Add support for more progress reporting in COPY

The command (TO or FROM), its type (file, pipe, program or callback),
and the number of tuples excluded by a WHERE clause in COPY FROM are
added to the progress reporting already available.

The column "lines_processed" is renamed to "tuples_processed" to
disambiguate the meaning of this column in the cases of CSV and BINARY
COPY and to be more consistent with the other catalog progress views.

Bump catalog version, again.

Author: Matthias van de Meent
Reviewed-by: Michael Paquier, Justin Pryzby, Bharath Rupireddy, Josef
Šimánek, Tomas Vondra
Discussion: https://postgr.es/m/CAEze2WiOcgdH4aQA8NtZq-4dgvnJzp8PohdeKchPkhMY-jWZXA@mail.gmail.com
doc/src/sgml/monitoring.sgml
src/backend/catalog/system_views.sql
src/backend/commands/copyfrom.c
src/backend/commands/copyto.c
src/include/catalog/catversion.h
src/include/commands/progress.h
src/test/regress/expected/rules.out