Change default to false for citus.skip_jsonb_validation_in_copy

pull/2041/head
Metin Doslu 2018-03-06 10:33:40 +02:00
parent 1d2a2d13cb
commit e86d34256c
2 changed files with 4 additions and 2 deletions

View File

@ -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(

View File

@ -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