From: Michael Paquier <michael@paquier.xyz>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Add support for more progress reporting in COPY
Date: Tue, 09 Mar 2021 05:23:16 +0000
Message-ID: <E1lJUpw-00062E-R4@gemulon.postgresql.org> (raw)
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
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/9d2d45700928d49212fb7ed140feeaebe3a6014f
Modified Files
--------------
doc/src/sgml/monitoring.sgml | 45 ++++++++++++++++++++++++++++++++----
src/backend/catalog/system_views.sql | 11 ++++++++-
src/backend/commands/copyfrom.c | 34 +++++++++++++++++++++++----
src/backend/commands/copyto.c | 28 ++++++++++++++++++----
src/include/catalog/catversion.h | 2 +-
src/include/commands/progress.h | 17 ++++++++++++--
src/test/regress/expected/rules.out | 15 +++++++++++-
7 files changed, 134 insertions(+), 18 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: Add support for more progress reporting in COPY
In-Reply-To: <E1lJUpw-00062E-R4@gemulon.postgresql.org>
References: <E1lJUpw-00062E-R4@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