diff options
author | Masahiko Sawada <msawada@postgresql.org> | 2024-01-25 10:57:41 +0900 |
---|---|---|
committer | Masahiko Sawada <msawada@postgresql.org> | 2024-01-25 10:57:41 +0900 |
commit | 729439607ad210dbb446e31754e8627d7e3f7dda (patch) | |
tree | 627604256869a22130478dc417949d07d8b7f32f /src/include/commands/progress.h | |
parent | d282e88e50521a457fa1b36e55f43bac02a3167f (diff) |
Add progress reporting of skipped tuples during COPY FROM.
9e2d870119 enabled the COPY command to skip malformed data, however
there was no visibility into how many tuples were actually skipped
during the COPY FROM.
This commit adds a new "tuples_skipped" column to
pg_stat_progress_copy view to report the number of tuples that were
skipped because they contain malformed data.
Bump catalog version.
Author: Atsushi Torikoshi
Reviewed-by: Masahiko Sawada
Discussion: https://postgr.es/m/d12fd8c99adcae2744212cb23feff6ed%40oss.nttdata.com
Diffstat (limited to 'src/include/commands/progress.h')
-rw-r--r-- | src/include/commands/progress.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/include/commands/progress.h b/src/include/commands/progress.h index a458c8c50a6..73afa77a9c7 100644 --- a/src/include/commands/progress.h +++ b/src/include/commands/progress.h @@ -142,6 +142,7 @@ #define PROGRESS_COPY_TUPLES_EXCLUDED 3 #define PROGRESS_COPY_COMMAND 4 #define PROGRESS_COPY_TYPE 5 +#define PROGRESS_COPY_TUPLES_SKIPPED 6 /* Commands of COPY (as advertised via PROGRESS_COPY_COMMAND) */ #define PROGRESS_COPY_COMMAND_FROM 1 |