mirror of
https://github.com/postgres/postgres.git
synced 2025-11-10 17:42:29 +03:00
Rename COPY option from SAVE_ERROR_TO to ON_ERROR
The option names now are "stop" (default) and "ignore". The future options could be "file 'filename.log'" and "table 'tablename'". Discussion: https://postgr.es/m/20240117.164859.2242646601795501168.horikyota.ntt%40gmail.com Author: Jian He Reviewed-by: Atsushi Torikoshi
This commit is contained in:
@@ -956,7 +956,11 @@ NextCopyFrom(CopyFromState cstate, ExprContext *econtext,
|
||||
|
||||
values[m] = ExecEvalExpr(defexprs[m], econtext, &nulls[m]);
|
||||
}
|
||||
/* If SAVE_ERROR_TO is specified, skip rows with soft errors */
|
||||
|
||||
/*
|
||||
* If ON_ERROR is specified with IGNORE, skip rows with soft
|
||||
* errors
|
||||
*/
|
||||
else if (!InputFunctionCallSafe(&in_functions[m],
|
||||
string,
|
||||
typioparams[m],
|
||||
|
||||
Reference in New Issue
Block a user