mirror of https://github.com/citusdata/citus.git
Merge pull request #2041 from citusdata/make_skip_jsonb_validation_in_copy_off
Change default to false for citus.skip_jsonb_validation_in_copypull/2035/head
commit
27d159d6f6
|
@ -519,9 +519,9 @@ RegisterCitusConfigVariables(void)
|
|||
"be higher. This setting does not apply if the input format is "
|
||||
"binary."),
|
||||
&SkipJsonbValidationInCopy,
|
||||
true,
|
||||
false,
|
||||
PGC_USERSET,
|
||||
0,
|
||||
GUC_NO_SHOW_ALL,
|
||||
NULL, NULL, NULL);
|
||||
|
||||
DefineCustomIntVariable(
|
||||
|
|
|
@ -1120,6 +1120,8 @@ SELECT * FROM copy_jsonb ORDER BY key;
|
|||
\COPY copy_jsonb (key, value) FROM STDIN
|
||||
ERROR: invalid input syntax for type json
|
||||
DETAIL: The input string ended unexpectedly.
|
||||
CONTEXT: JSON data, line 1: {"r":255,"g":0,"b":0
|
||||
COPY copy_jsonb, line 1, column value: "{"r":255,"g":0,"b":0"
|
||||
TRUNCATE copy_jsonb;
|
||||
SET citus.skip_jsonb_validation_in_copy TO off;
|
||||
-- JSONB from text should work
|
||||
|
|
Loading…
Reference in New Issue