diff options
author | Alexander Korotkov <akorotkov@postgresql.org> | 2024-01-19 15:08:40 +0200 |
---|---|---|
committer | Alexander Korotkov <akorotkov@postgresql.org> | 2024-01-19 15:15:51 +0200 |
commit | b725b7eec431f7394d63abe621170efe3fcdcda4 (patch) | |
tree | 19514956bceed3061ee8872a7810bf40eb78ce81 /src/include | |
parent | dd0a0cfc81fecacf2aed41b9eb138f850e43aab6 (diff) | |
download | postgresql-b725b7eec431f7394d63abe621170efe3fcdcda4.tar.gz postgresql-b725b7eec431f7394d63abe621170efe3fcdcda4.zip |
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
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/commands/copy.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/include/commands/copy.h b/src/include/commands/copy.h index 8972c6180d7..b3da3cb0be7 100644 --- a/src/include/commands/copy.h +++ b/src/include/commands/copy.h @@ -34,11 +34,11 @@ typedef enum CopyHeaderChoice * Represents where to save input processing errors. More values to be added * in the future. */ -typedef enum CopySaveErrorToChoice +typedef enum CopyOnErrorChoice { - COPY_SAVE_ERROR_TO_ERROR = 0, /* immediately throw errors */ - COPY_SAVE_ERROR_TO_NONE, /* ignore errors */ -} CopySaveErrorToChoice; + COPY_ON_ERROR_STOP = 0, /* immediately throw errors, default */ + COPY_ON_ERROR_IGNORE, /* ignore errors */ +} CopyOnErrorChoice; /* * A struct to hold COPY options, in a parsed form. All of these are related @@ -72,7 +72,7 @@ typedef struct CopyFormatOptions bool force_null_all; /* FORCE_NULL *? */ bool *force_null_flags; /* per-column CSV FN flags */ bool convert_selectively; /* do selective binary conversion? */ - CopySaveErrorToChoice save_error_to; /* where to save error information */ + CopyOnErrorChoice on_error; /* what to do when error happened */ List *convert_select; /* list of column names (can be NIL) */ } CopyFormatOptions; |