Skip to content

Commit

Permalink
Adjust the setup.sql test script: with the postgres 10 beta3 version,…
Browse files Browse the repository at this point in the history
… the keyword UNBOUNDED used in the declarative partitionning becomes MINVALUE or MAXVALUE.
  • Loading branch information
beaud76 committed Aug 10, 2017
1 parent 969755a commit e746c3a
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 16 deletions.
4 changes: 2 additions & 2 deletions test/10/expected/setup.out
Original file line number Diff line number Diff line change
Expand Up @@ -221,11 +221,11 @@ CREATE TABLE IF NOT EXISTS myTblP (
col2 TEXT
);
DROP TABLE IF EXISTS myPartP1 ;
CREATE TABLE myPartP1 PARTITION OF myTblP (PRIMARY KEY (col1)) FOR VALUES FROM (UNBOUNDED) TO (0);
CREATE TABLE myPartP1 PARTITION OF myTblP (PRIMARY KEY (col1)) FOR VALUES FROM (MINVALUE) TO (0);
-- create the table with PG 9.6- so that next scripts do not abort
CREATE TABLE IF NOT EXISTS myPartP1 (PRIMARY KEY (col1)) INHERITS (myTblP);
DROP TABLE IF EXISTS myPartP2 ;
CREATE TABLE myPartP2 PARTITION OF myTblP (PRIMARY KEY (col1)) FOR VALUES FROM (0) TO (UNBOUNDED);
CREATE TABLE myPartP2 PARTITION OF myTblP (PRIMARY KEY (col1)) FOR VALUES FROM (0) TO (MAXVALUE);
-- create the table with PG 9.6- so that next scripts do not abort
CREATE TABLE IF NOT EXISTS myPartP2 (PRIMARY KEY (col1)) INHERITS (myTblP);
-- fifth schema (for unsupported tables)
Expand Down
4 changes: 2 additions & 2 deletions test/91/expected/setup.out
Original file line number Diff line number Diff line change
Expand Up @@ -224,14 +224,14 @@ CREATE TABLE IF NOT EXISTS myTblP (
col2 TEXT
);
DROP TABLE IF EXISTS myPartP1 ;
CREATE TABLE myPartP1 PARTITION OF myTblP (PRIMARY KEY (col1)) FOR VALUES FROM (UNBOUNDED) TO (0);
CREATE TABLE myPartP1 PARTITION OF myTblP (PRIMARY KEY (col1)) FOR VALUES FROM (MINVALUE) TO (0);
ERROR: syntax error at or near "PARTITION"
LINE 1: CREATE TABLE myPartP1 PARTITION OF myTblP (PRIMARY KEY (col1...
^
-- create the table with PG 9.6- so that next scripts do not abort
CREATE TABLE IF NOT EXISTS myPartP1 (PRIMARY KEY (col1)) INHERITS (myTblP);
DROP TABLE IF EXISTS myPartP2 ;
CREATE TABLE myPartP2 PARTITION OF myTblP (PRIMARY KEY (col1)) FOR VALUES FROM (0) TO (UNBOUNDED);
CREATE TABLE myPartP2 PARTITION OF myTblP (PRIMARY KEY (col1)) FOR VALUES FROM (0) TO (MAXVALUE);
ERROR: syntax error at or near "PARTITION"
LINE 1: CREATE TABLE myPartP2 PARTITION OF myTblP (PRIMARY KEY (col1...
^
Expand Down
4 changes: 2 additions & 2 deletions test/92/expected/setup.out
Original file line number Diff line number Diff line change
Expand Up @@ -224,14 +224,14 @@ CREATE TABLE IF NOT EXISTS myTblP (
col2 TEXT
);
DROP TABLE IF EXISTS myPartP1 ;
CREATE TABLE myPartP1 PARTITION OF myTblP (PRIMARY KEY (col1)) FOR VALUES FROM (UNBOUNDED) TO (0);
CREATE TABLE myPartP1 PARTITION OF myTblP (PRIMARY KEY (col1)) FOR VALUES FROM (MINVALUE) TO (0);
ERROR: syntax error at or near "PARTITION"
LINE 1: CREATE TABLE myPartP1 PARTITION OF myTblP (PRIMARY KEY (col1...
^
-- create the table with PG 9.6- so that next scripts do not abort
CREATE TABLE IF NOT EXISTS myPartP1 (PRIMARY KEY (col1)) INHERITS (myTblP);
DROP TABLE IF EXISTS myPartP2 ;
CREATE TABLE myPartP2 PARTITION OF myTblP (PRIMARY KEY (col1)) FOR VALUES FROM (0) TO (UNBOUNDED);
CREATE TABLE myPartP2 PARTITION OF myTblP (PRIMARY KEY (col1)) FOR VALUES FROM (0) TO (MAXVALUE);
ERROR: syntax error at or near "PARTITION"
LINE 1: CREATE TABLE myPartP2 PARTITION OF myTblP (PRIMARY KEY (col1...
^
Expand Down
4 changes: 2 additions & 2 deletions test/93/expected/setup.out
Original file line number Diff line number Diff line change
Expand Up @@ -224,14 +224,14 @@ CREATE TABLE IF NOT EXISTS myTblP (
col2 TEXT
);
DROP TABLE IF EXISTS myPartP1 ;
CREATE TABLE myPartP1 PARTITION OF myTblP (PRIMARY KEY (col1)) FOR VALUES FROM (UNBOUNDED) TO (0);
CREATE TABLE myPartP1 PARTITION OF myTblP (PRIMARY KEY (col1)) FOR VALUES FROM (MINVALUE) TO (0);
ERROR: syntax error at or near "PARTITION"
LINE 1: CREATE TABLE myPartP1 PARTITION OF myTblP (PRIMARY KEY (col1...
^
-- create the table with PG 9.6- so that next scripts do not abort
CREATE TABLE IF NOT EXISTS myPartP1 (PRIMARY KEY (col1)) INHERITS (myTblP);
DROP TABLE IF EXISTS myPartP2 ;
CREATE TABLE myPartP2 PARTITION OF myTblP (PRIMARY KEY (col1)) FOR VALUES FROM (0) TO (UNBOUNDED);
CREATE TABLE myPartP2 PARTITION OF myTblP (PRIMARY KEY (col1)) FOR VALUES FROM (0) TO (MAXVALUE);
ERROR: syntax error at or near "PARTITION"
LINE 1: CREATE TABLE myPartP2 PARTITION OF myTblP (PRIMARY KEY (col1...
^
Expand Down
4 changes: 2 additions & 2 deletions test/94/expected/setup.out
Original file line number Diff line number Diff line change
Expand Up @@ -224,14 +224,14 @@ CREATE TABLE IF NOT EXISTS myTblP (
col2 TEXT
);
DROP TABLE IF EXISTS myPartP1 ;
CREATE TABLE myPartP1 PARTITION OF myTblP (PRIMARY KEY (col1)) FOR VALUES FROM (UNBOUNDED) TO (0);
CREATE TABLE myPartP1 PARTITION OF myTblP (PRIMARY KEY (col1)) FOR VALUES FROM (MINVALUE) TO (0);
ERROR: syntax error at or near "PARTITION"
LINE 1: CREATE TABLE myPartP1 PARTITION OF myTblP (PRIMARY KEY (col1...
^
-- create the table with PG 9.6- so that next scripts do not abort
CREATE TABLE IF NOT EXISTS myPartP1 (PRIMARY KEY (col1)) INHERITS (myTblP);
DROP TABLE IF EXISTS myPartP2 ;
CREATE TABLE myPartP2 PARTITION OF myTblP (PRIMARY KEY (col1)) FOR VALUES FROM (0) TO (UNBOUNDED);
CREATE TABLE myPartP2 PARTITION OF myTblP (PRIMARY KEY (col1)) FOR VALUES FROM (0) TO (MAXVALUE);
ERROR: syntax error at or near "PARTITION"
LINE 1: CREATE TABLE myPartP2 PARTITION OF myTblP (PRIMARY KEY (col1...
^
Expand Down
4 changes: 2 additions & 2 deletions test/95/expected/setup.out
Original file line number Diff line number Diff line change
Expand Up @@ -224,14 +224,14 @@ CREATE TABLE IF NOT EXISTS myTblP (
col2 TEXT
);
DROP TABLE IF EXISTS myPartP1 ;
CREATE TABLE myPartP1 PARTITION OF myTblP (PRIMARY KEY (col1)) FOR VALUES FROM (UNBOUNDED) TO (0);
CREATE TABLE myPartP1 PARTITION OF myTblP (PRIMARY KEY (col1)) FOR VALUES FROM (MINVALUE) TO (0);
ERROR: syntax error at or near "PARTITION"
LINE 1: CREATE TABLE myPartP1 PARTITION OF myTblP (PRIMARY KEY (col1...
^
-- create the table with PG 9.6- so that next scripts do not abort
CREATE TABLE IF NOT EXISTS myPartP1 (PRIMARY KEY (col1)) INHERITS (myTblP);
DROP TABLE IF EXISTS myPartP2 ;
CREATE TABLE myPartP2 PARTITION OF myTblP (PRIMARY KEY (col1)) FOR VALUES FROM (0) TO (UNBOUNDED);
CREATE TABLE myPartP2 PARTITION OF myTblP (PRIMARY KEY (col1)) FOR VALUES FROM (0) TO (MAXVALUE);
ERROR: syntax error at or near "PARTITION"
LINE 1: CREATE TABLE myPartP2 PARTITION OF myTblP (PRIMARY KEY (col1...
^
Expand Down
4 changes: 2 additions & 2 deletions test/96/expected/setup.out
Original file line number Diff line number Diff line change
Expand Up @@ -224,14 +224,14 @@ CREATE TABLE IF NOT EXISTS myTblP (
col2 TEXT
);
DROP TABLE IF EXISTS myPartP1 ;
CREATE TABLE myPartP1 PARTITION OF myTblP (PRIMARY KEY (col1)) FOR VALUES FROM (UNBOUNDED) TO (0);
CREATE TABLE myPartP1 PARTITION OF myTblP (PRIMARY KEY (col1)) FOR VALUES FROM (MINVALUE) TO (0);
ERROR: syntax error at or near "PARTITION"
LINE 1: CREATE TABLE myPartP1 PARTITION OF myTblP (PRIMARY KEY (col1...
^
-- create the table with PG 9.6- so that next scripts do not abort
CREATE TABLE IF NOT EXISTS myPartP1 (PRIMARY KEY (col1)) INHERITS (myTblP);
DROP TABLE IF EXISTS myPartP2 ;
CREATE TABLE myPartP2 PARTITION OF myTblP (PRIMARY KEY (col1)) FOR VALUES FROM (0) TO (UNBOUNDED);
CREATE TABLE myPartP2 PARTITION OF myTblP (PRIMARY KEY (col1)) FOR VALUES FROM (0) TO (MAXVALUE);
ERROR: syntax error at or near "PARTITION"
LINE 1: CREATE TABLE myPartP2 PARTITION OF myTblP (PRIMARY KEY (col1...
^
Expand Down
4 changes: 2 additions & 2 deletions test/sql/setup.sql
Original file line number Diff line number Diff line change
Expand Up @@ -259,12 +259,12 @@ CREATE TABLE IF NOT EXISTS myTblP (
);

DROP TABLE IF EXISTS myPartP1 ;
CREATE TABLE myPartP1 PARTITION OF myTblP (PRIMARY KEY (col1)) FOR VALUES FROM (UNBOUNDED) TO (0);
CREATE TABLE myPartP1 PARTITION OF myTblP (PRIMARY KEY (col1)) FOR VALUES FROM (MINVALUE) TO (0);
-- create the table with PG 9.6- so that next scripts do not abort
CREATE TABLE IF NOT EXISTS myPartP1 (PRIMARY KEY (col1)) INHERITS (myTblP);

DROP TABLE IF EXISTS myPartP2 ;
CREATE TABLE myPartP2 PARTITION OF myTblP (PRIMARY KEY (col1)) FOR VALUES FROM (0) TO (UNBOUNDED);
CREATE TABLE myPartP2 PARTITION OF myTblP (PRIMARY KEY (col1)) FOR VALUES FROM (0) TO (MAXVALUE);
-- create the table with PG 9.6- so that next scripts do not abort
CREATE TABLE IF NOT EXISTS myPartP2 (PRIMARY KEY (col1)) INHERITS (myTblP);

Expand Down

0 comments on commit e746c3a

Please sign in to comment.