postgresql/src/bin
Alexander Korotkov 9e2d870119 Add new COPY option SAVE_ERROR_TO
Currently, when source data contains unexpected data regarding data type or
range, the entire COPY fails. However, in some cases, such data can be ignored
and just copying normal data is preferable.

This commit adds a new option SAVE_ERROR_TO, which specifies where to save the
error information. When this option is specified, COPY skips soft errors and
continues copying.

Currently, SAVE_ERROR_TO only supports "none". This indicates error information
is not saved and COPY just skips the unexpected data and continues running.

Later works are expected to add more choices, such as 'log' and 'table'.

Author: Damir Belyalov, Atsushi Torikoshi, Alex Shulgin, Jian He
Discussion: https://postgr.es/m/87k31ftoe0.fsf_-_%40commandprompt.com
Reviewed-by: Pavel Stehule, Andres Freund, Tom Lane, Daniel Gustafsson,
Reviewed-by: Alena Rybakina, Andy Fan, Andrei Lepikhov, Masahiko Sawada
Reviewed-by: Vignesh C, Atsushi Torikoshi
2024-01-16 23:08:53 +02:00
..
initdb Restore initdb's old behavior of always setting the lc_xxx GUCs. 2024-01-10 18:09:29 -05:00
pg_amcheck Escape output of pg_amcheck test 2024-01-13 20:32:18 +01:00
pg_archivecleanup Update copyright for 2024 2024-01-03 20:49:05 -05:00
pg_basebackup Repair various defects in dc21234005. 2024-01-11 13:06:10 -05:00
pg_checksums Update copyright for 2024 2024-01-03 20:49:05 -05:00
pg_combinebackup Repair various defects in dc21234005. 2024-01-11 13:06:10 -05:00
pg_config Update copyright for 2024 2024-01-03 20:49:05 -05:00
pg_controldata Update copyright for 2024 2024-01-03 20:49:05 -05:00
pg_ctl pg_ctl: Disable autoruns for cmd.exe on Windows 2024-01-10 10:41:57 +09:00
pg_dump pg_dump: Remove obsolete trigger support 2024-01-14 07:57:48 +01:00
pg_resetwal Update copyright for 2024 2024-01-03 20:49:05 -05:00
pg_rewind Update copyright for 2024 2024-01-03 20:49:05 -05:00
pg_test_fsync Update copyright for 2024 2024-01-03 20:49:05 -05:00
pg_test_timing Update copyright for 2024 2024-01-03 20:49:05 -05:00
pg_upgrade Rework how logirep launchers are stopped during pg_upgrade 2024-01-12 08:23:07 +09:00
pg_verifybackup Update copyright for 2024 2024-01-03 20:49:05 -05:00
pg_waldump Update copyright for 2024 2024-01-03 20:49:05 -05:00
pg_walsummary Fix typos. 2024-01-15 11:50:44 -05:00
pgbench Update copyright for 2024 2024-01-03 20:49:05 -05:00
pgevent Update copyright for 2024 2024-01-03 20:49:05 -05:00
psql Add new COPY option SAVE_ERROR_TO 2024-01-16 23:08:53 +02:00
scripts Update copyright for 2024 2024-01-03 20:49:05 -05:00
Makefile Add new pg_walsummary tool. 2024-01-11 12:48:27 -05:00
meson.build Add new pg_walsummary tool. 2024-01-11 12:48:27 -05:00