TRUNCATE customer; \! export PGCLIENTENCODING=utf-8; pg_bulkload -d contrib_regression data/csv6.ctl -o"delimiter=|" -i stdin < data/data1.csv -l results/remote1.log -P results/remote1.prs -u results/remote1.dup -o "PARSE_ERRORS=50" NOTICE: BULK LOAD START NOTICE: BULK LOAD END 2 Rows skipped. 5 Rows successfully loaded. 4 Rows not loaded due to parse errors. 0 Rows not loaded due to duplicate errors. 0 Rows replaced with new rows. WARNING: some rows were not loaded due to errors. \! awk -f data/adjust.awk results/remote1.log pg_bulkload 3.1.15 on INPUT = stdin PARSE_BADFILE = .../remote1.prs LOGFILE = .../remote1.log LIMIT = 5 PARSE_ERRORS = 50 ENCODING = UTF8 CHECK_CONSTRAINTS = NO TYPE = CSV SKIP = 2 DELIMITER = | QUOTE = "\"" ESCAPE = "\"" NULL = "nullvalue " OUTPUT = public.customer MULTI_PROCESS = YES VERBOSE = NO WRITER = DIRECT DUPLICATE_BADFILE = .../remote1.dup DUPLICATE_ERRORS = 0 ON_DUPLICATE_KEEP = NEW TRUNCATE = NO Parse error Record 1: Input Record 3: Rejected - column 8. null value in column "c_street_2" violates not-null constraint Parse error Record 2: Input Record 4: Rejected - column 15. invalid input syntax for type numeric: "BAD-DATA" Parse error Record 3: Input Record 6: Rejected - column 8. null value in column "c_street_2" violates not-null constraint Parse error Record 4: Input Record 7: Rejected - column 7. null value in column "c_street_1" violates not-null constraint 2 Rows skipped. 5 Rows successfully loaded. 4 Rows not loaded due to parse errors. 0 Rows not loaded due to duplicate errors. 0 Rows replaced with new rows. Run began on Run ended on CPU