diff --git a/src/test/regress/expected/create_table.out b/src/test/regress/expected/create_table.out index ade60c0258a3d15085c3bb4bc68e627b2aa16c70..167d02d039ec8774cfb7be803a48e734921590bc 100644 --- a/src/test/regress/expected/create_table.out +++ b/src/test/regress/expected/create_table.out @@ -196,6 +196,9 @@ CREATE TABLE array_index_op_test ( i int4[], t text[] ); +CREATE TABLE testjsonb ( + j jsonb +); CREATE TABLE IF NOT EXISTS test_tsvector( t text, a tsvector diff --git a/src/test/regress/expected/jsonb.out b/src/test/regress/expected/jsonb.out index e25483d2f537d46da7c708e6cfd28259d209bf79..f368530a193fed70d877d9a8b1913a0fe0726326 100644 --- a/src/test/regress/expected/jsonb.out +++ b/src/test/regress/expected/jsonb.out @@ -457,8 +457,6 @@ SELECT '{"x":"y"}'::jsonb <> '{"x":"z"}'::jsonb; t (1 row) -CREATE TABLE testjsonb (j jsonb); -\copy testjsonb FROM 'data/jsonb.data' -- containment SELECT jsonb_contains('{"a":"b", "b":1, "c":null}', '{"a":"b"}'); jsonb_contains diff --git a/src/test/regress/expected/jsonb_1.out b/src/test/regress/expected/jsonb_1.out index 06af5c8252ad984b8c46b19d452e7671b181deb8..856c55af7176af2f91b41fb92e12891a356dc08c 100644 --- a/src/test/regress/expected/jsonb_1.out +++ b/src/test/regress/expected/jsonb_1.out @@ -457,8 +457,6 @@ SELECT '{"x":"y"}'::jsonb <> '{"x":"z"}'::jsonb; t (1 row) -CREATE TABLE testjsonb (j jsonb); -\copy testjsonb FROM 'data/jsonb.data' -- containment SELECT jsonb_contains('{"a":"b", "b":1, "c":null}', '{"a":"b"}'); jsonb_contains diff --git a/src/test/regress/expected/sanity_check.out b/src/test/regress/expected/sanity_check.out index a62a3e3ebc666b4549631d394ac60c71de8411e3..111d24ca6b8b5c2c4e5ab5bd1f0fdcf1cd5e5111 100644 --- a/src/test/regress/expected/sanity_check.out +++ b/src/test/regress/expected/sanity_check.out @@ -160,6 +160,7 @@ test_range_excl|t test_range_gist|t test_range_spgist|t test_tsvector|f +testjsonb|f text_tbl|f time_tbl|f timestamp_tbl|f diff --git a/src/test/regress/input/copy.source b/src/test/regress/input/copy.source index 80f911fea85281692f5ea36c09cef6861b07e9e4..cb13606d1416b3c3764f904ff1c3be318caaecb1 100644 --- a/src/test/regress/input/copy.source +++ b/src/test/regress/input/copy.source @@ -41,6 +41,8 @@ COPY hash_f8_heap FROM '@abs_srcdir@/data/hash.data'; COPY test_tsvector FROM '@abs_srcdir@/data/tsearch.data'; +COPY testjsonb FROM '@abs_srcdir@/data/jsonb.data'; + -- the data in this file has a lot of duplicates in the index key -- fields, leading to long bucket chains and lots of table expansion. -- this is therefore a stress test of the bucket overflow code (unlike diff --git a/src/test/regress/output/copy.source b/src/test/regress/output/copy.source index e8951c5b739962cda90f3983aa0de229d0b8d7f0..b7e372d61b4c1f05f21507bd743a669cb1f24d42 100644 --- a/src/test/regress/output/copy.source +++ b/src/test/regress/output/copy.source @@ -22,6 +22,7 @@ COPY hash_name_heap FROM '@abs_srcdir@/data/hash.data'; COPY hash_txt_heap FROM '@abs_srcdir@/data/hash.data'; COPY hash_f8_heap FROM '@abs_srcdir@/data/hash.data'; COPY test_tsvector FROM '@abs_srcdir@/data/tsearch.data'; +COPY testjsonb FROM '@abs_srcdir@/data/jsonb.data'; -- the data in this file has a lot of duplicates in the index key -- fields, leading to long bucket chains and lots of table expansion. -- this is therefore a stress test of the bucket overflow code (unlike diff --git a/src/test/regress/output/misc.source b/src/test/regress/output/misc.source index e194f7ed5cd305351bea56101d2c4bff8af93dbc..7015bfda2c2474781a229ff6d86e564ca13b36c1 100644 --- a/src/test/regress/output/misc.source +++ b/src/test/regress/output/misc.source @@ -680,6 +680,7 @@ SELECT user_relns() AS user_relns test_range_gist test_range_spgist test_tsvector + testjsonb text_tbl time_tbl timestamp_tbl @@ -697,7 +698,7 @@ SELECT user_relns() AS user_relns tvvmv varchar_tbl xacttest -(119 rows) +(120 rows) SELECT name(equipment(hobby_construct(text 'skywalking', text 'mer'))); name diff --git a/src/test/regress/sql/create_table.sql b/src/test/regress/sql/create_table.sql index a050e8b6d1a67b71f9105f38858e6c6379e02578..8eb246b817e968269ade39d28b4004dab56f24c2 100644 --- a/src/test/regress/sql/create_table.sql +++ b/src/test/regress/sql/create_table.sql @@ -232,6 +232,10 @@ CREATE TABLE array_index_op_test ( t text[] ); +CREATE TABLE testjsonb ( + j jsonb +); + CREATE TABLE IF NOT EXISTS test_tsvector( t text, a tsvector diff --git a/src/test/regress/sql/jsonb.sql b/src/test/regress/sql/jsonb.sql index 1ef49138bb8220a502df8c880ddebee98a55a1ce..e460b1bb2a704f8a75db7f91cc007c0e82d62b5f 100644 --- a/src/test/regress/sql/jsonb.sql +++ b/src/test/regress/sql/jsonb.sql @@ -115,9 +115,6 @@ SELECT '{"x":"y"}'::jsonb = '{"x":"z"}'::jsonb; SELECT '{"x":"y"}'::jsonb <> '{"x":"y"}'::jsonb; SELECT '{"x":"y"}'::jsonb <> '{"x":"z"}'::jsonb; -CREATE TABLE testjsonb (j jsonb); -\copy testjsonb FROM 'data/jsonb.data' - -- containment SELECT jsonb_contains('{"a":"b", "b":1, "c":null}', '{"a":"b"}'); SELECT jsonb_contains('{"a":"b", "b":1, "c":null}', '{"a":"b", "c":null}');