Fix 'installcheck', since the last commit broke the expected output when the table is missing a valid primary/unique key.
This commit is contained in:
parent
66ae2f33a7
commit
6fc41e9c1a
@ -302,15 +302,15 @@ CREATE TABLE tbl_pk_uk (col1 int NOT NULL, col2 int NOT NULL, PRIMARY KEY(col1,
|
||||
CREATE TABLE tbl_nn_puk (col1 int NOT NULL, col2 int NOT NULL);
|
||||
CREATE UNIQUE INDEX tbl_nn_puk_pcol1_idx ON tbl_nn_puk(col1) WHERE col1 < 10;
|
||||
\! pg_repack --dbname=contrib_regression --no-order --table=tbl_nn
|
||||
ERROR: relation "tbl_nn" must have a primary key or not-null unique keys
|
||||
-- => ERROR
|
||||
WARNING: relation "tbl_nn" must have a primary key or not-null unique keys
|
||||
-- => WARNING
|
||||
\! pg_repack --dbname=contrib_regression --no-order --table=tbl_uk
|
||||
ERROR: relation "tbl_uk" must have a primary key or not-null unique keys
|
||||
-- => ERROR
|
||||
WARNING: relation "tbl_uk" must have a primary key or not-null unique keys
|
||||
-- => WARNING
|
||||
\! pg_repack --dbname=contrib_regression --no-order --table=tbl_nn_uk
|
||||
-- => OK
|
||||
\! pg_repack --dbname=contrib_regression --no-order --table=tbl_pk_uk
|
||||
-- => OK
|
||||
\! pg_repack --dbname=contrib_regression --no-order --table=tbl_nn_puk
|
||||
ERROR: relation "tbl_nn_puk" must have a primary key or not-null unique keys
|
||||
-- => ERROR
|
||||
WARNING: relation "tbl_nn_puk" must have a primary key or not-null unique keys
|
||||
-- => WARNING
|
||||
|
@ -178,12 +178,12 @@ CREATE TABLE tbl_pk_uk (col1 int NOT NULL, col2 int NOT NULL, PRIMARY KEY(col1,
|
||||
CREATE TABLE tbl_nn_puk (col1 int NOT NULL, col2 int NOT NULL);
|
||||
CREATE UNIQUE INDEX tbl_nn_puk_pcol1_idx ON tbl_nn_puk(col1) WHERE col1 < 10;
|
||||
\! pg_repack --dbname=contrib_regression --no-order --table=tbl_nn
|
||||
-- => ERROR
|
||||
-- => WARNING
|
||||
\! pg_repack --dbname=contrib_regression --no-order --table=tbl_uk
|
||||
-- => ERROR
|
||||
-- => WARNING
|
||||
\! pg_repack --dbname=contrib_regression --no-order --table=tbl_nn_uk
|
||||
-- => OK
|
||||
\! pg_repack --dbname=contrib_regression --no-order --table=tbl_pk_uk
|
||||
-- => OK
|
||||
\! pg_repack --dbname=contrib_regression --no-order --table=tbl_nn_puk
|
||||
-- => ERROR
|
||||
-- => WARNING
|
||||
|
Loading…
x
Reference in New Issue
Block a user