Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
ab22b149
Commit
ab22b149
authored
Mar 23, 2014
by
Andrew Dunstan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Do jsonb regression test input in the conventional way.
This should make the buildfarm happier.
parent
ca07cd59
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
13 additions
and
8 deletions
+13
-8
src/test/regress/expected/create_table.out
src/test/regress/expected/create_table.out
+3
-0
src/test/regress/expected/jsonb.out
src/test/regress/expected/jsonb.out
+0
-2
src/test/regress/expected/jsonb_1.out
src/test/regress/expected/jsonb_1.out
+0
-2
src/test/regress/expected/sanity_check.out
src/test/regress/expected/sanity_check.out
+1
-0
src/test/regress/input/copy.source
src/test/regress/input/copy.source
+2
-0
src/test/regress/output/copy.source
src/test/regress/output/copy.source
+1
-0
src/test/regress/output/misc.source
src/test/regress/output/misc.source
+2
-1
src/test/regress/sql/create_table.sql
src/test/regress/sql/create_table.sql
+4
-0
src/test/regress/sql/jsonb.sql
src/test/regress/sql/jsonb.sql
+0
-3
No files found.
src/test/regress/expected/create_table.out
View file @
ab22b149
...
@@ -196,6 +196,9 @@ CREATE TABLE array_index_op_test (
...
@@ -196,6 +196,9 @@ CREATE TABLE array_index_op_test (
i int4[],
i int4[],
t text[]
t text[]
);
);
CREATE TABLE testjsonb (
j jsonb
);
CREATE TABLE IF NOT EXISTS test_tsvector(
CREATE TABLE IF NOT EXISTS test_tsvector(
t text,
t text,
a tsvector
a tsvector
...
...
src/test/regress/expected/jsonb.out
View file @
ab22b149
...
@@ -457,8 +457,6 @@ SELECT '{"x":"y"}'::jsonb <> '{"x":"z"}'::jsonb;
...
@@ -457,8 +457,6 @@ SELECT '{"x":"y"}'::jsonb <> '{"x":"z"}'::jsonb;
t
t
(1 row)
(1 row)
CREATE TABLE testjsonb (j jsonb);
\copy testjsonb FROM 'data/jsonb.data'
-- containment
-- containment
SELECT jsonb_contains('{"a":"b", "b":1, "c":null}', '{"a":"b"}');
SELECT jsonb_contains('{"a":"b", "b":1, "c":null}', '{"a":"b"}');
jsonb_contains
jsonb_contains
...
...
src/test/regress/expected/jsonb_1.out
View file @
ab22b149
...
@@ -457,8 +457,6 @@ SELECT '{"x":"y"}'::jsonb <> '{"x":"z"}'::jsonb;
...
@@ -457,8 +457,6 @@ SELECT '{"x":"y"}'::jsonb <> '{"x":"z"}'::jsonb;
t
t
(1 row)
(1 row)
CREATE TABLE testjsonb (j jsonb);
\copy testjsonb FROM 'data/jsonb.data'
-- containment
-- containment
SELECT jsonb_contains('{"a":"b", "b":1, "c":null}', '{"a":"b"}');
SELECT jsonb_contains('{"a":"b", "b":1, "c":null}', '{"a":"b"}');
jsonb_contains
jsonb_contains
...
...
src/test/regress/expected/sanity_check.out
View file @
ab22b149
...
@@ -160,6 +160,7 @@ test_range_excl|t
...
@@ -160,6 +160,7 @@ test_range_excl|t
test_range_gist|t
test_range_gist|t
test_range_spgist|t
test_range_spgist|t
test_tsvector|f
test_tsvector|f
testjsonb|f
text_tbl|f
text_tbl|f
time_tbl|f
time_tbl|f
timestamp_tbl|f
timestamp_tbl|f
...
...
src/test/regress/input/copy.source
View file @
ab22b149
...
@@ -41,6 +41,8 @@ COPY hash_f8_heap FROM '@abs_srcdir@/data/hash.data';
...
@@ -41,6 +41,8 @@ COPY hash_f8_heap FROM '@abs_srcdir@/data/hash.data';
COPY test_tsvector FROM '@abs_srcdir@/data/tsearch.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
-- 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.
-- fields, leading to long bucket chains and lots of table expansion.
-- this is therefore a stress test of the bucket overflow code (unlike
-- this is therefore a stress test of the bucket overflow code (unlike
...
...
src/test/regress/output/copy.source
View file @
ab22b149
...
@@ -22,6 +22,7 @@ COPY hash_name_heap FROM '@abs_srcdir@/data/hash.data';
...
@@ -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_txt_heap FROM '@abs_srcdir@/data/hash.data';
COPY hash_f8_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 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
-- 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.
-- fields, leading to long bucket chains and lots of table expansion.
-- this is therefore a stress test of the bucket overflow code (unlike
-- this is therefore a stress test of the bucket overflow code (unlike
...
...
src/test/regress/output/misc.source
View file @
ab22b149
...
@@ -680,6 +680,7 @@ SELECT user_relns() AS user_relns
...
@@ -680,6 +680,7 @@ SELECT user_relns() AS user_relns
test_range_gist
test_range_gist
test_range_spgist
test_range_spgist
test_tsvector
test_tsvector
testjsonb
text_tbl
text_tbl
time_tbl
time_tbl
timestamp_tbl
timestamp_tbl
...
@@ -697,7 +698,7 @@ SELECT user_relns() AS user_relns
...
@@ -697,7 +698,7 @@ SELECT user_relns() AS user_relns
tvvmv
tvvmv
varchar_tbl
varchar_tbl
xacttest
xacttest
(1
19
rows)
(1
20
rows)
SELECT name(equipment(hobby_construct(text 'skywalking', text 'mer')));
SELECT name(equipment(hobby_construct(text 'skywalking', text 'mer')));
name
name
...
...
src/test/regress/sql/create_table.sql
View file @
ab22b149
...
@@ -232,6 +232,10 @@ CREATE TABLE array_index_op_test (
...
@@ -232,6 +232,10 @@ CREATE TABLE array_index_op_test (
t
text
[]
t
text
[]
);
);
CREATE
TABLE
testjsonb
(
j
jsonb
);
CREATE
TABLE
IF
NOT
EXISTS
test_tsvector
(
CREATE
TABLE
IF
NOT
EXISTS
test_tsvector
(
t
text
,
t
text
,
a
tsvector
a
tsvector
...
...
src/test/regress/sql/jsonb.sql
View file @
ab22b149
...
@@ -115,9 +115,6 @@ SELECT '{"x":"y"}'::jsonb = '{"x":"z"}'::jsonb;
...
@@ -115,9 +115,6 @@ SELECT '{"x":"y"}'::jsonb = '{"x":"z"}'::jsonb;
SELECT
'{"x":"y"}'
::
jsonb
<>
'{"x":"y"}'
::
jsonb
;
SELECT
'{"x":"y"}'
::
jsonb
<>
'{"x":"y"}'
::
jsonb
;
SELECT
'{"x":"y"}'
::
jsonb
<>
'{"x":"z"}'
::
jsonb
;
SELECT
'{"x":"y"}'
::
jsonb
<>
'{"x":"z"}'
::
jsonb
;
CREATE
TABLE
testjsonb
(
j
jsonb
);
\
copy
testjsonb
FROM
'data/jsonb.data'
-- containment
-- containment
SELECT
jsonb_contains
(
'{"a":"b", "b":1, "c":null}'
,
'{"a":"b"}'
);
SELECT
jsonb_contains
(
'{"a":"b", "b":1, "c":null}'
,
'{"a":"b"}'
);
SELECT
jsonb_contains
(
'{"a":"b", "b":1, "c":null}'
,
'{"a":"b", "c":null}'
);
SELECT
jsonb_contains
(
'{"a":"b", "b":1, "c":null}'
,
'{"a":"b", "c":null}'
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment