Skip to content

Commit 6fc41e9

Browse files
committed
Fix 'installcheck', since the last commit broke the expected output when the table is missing a valid primary/unique key.
1 parent 66ae2f3 commit 6fc41e9

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

bin/expected/repack.out

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -302,15 +302,15 @@ CREATE TABLE tbl_pk_uk (col1 int NOT NULL, col2 int NOT NULL, PRIMARY KEY(col1,
302302
CREATE TABLE tbl_nn_puk (col1 int NOT NULL, col2 int NOT NULL);
303303
CREATE UNIQUE INDEX tbl_nn_puk_pcol1_idx ON tbl_nn_puk(col1) WHERE col1 < 10;
304304
\! pg_repack --dbname=contrib_regression --no-order --table=tbl_nn
305-
ERROR: relation "tbl_nn" must have a primary key or not-null unique keys
306-
-- => ERROR
305+
WARNING: relation "tbl_nn" must have a primary key or not-null unique keys
306+
-- => WARNING
307307
\! pg_repack --dbname=contrib_regression --no-order --table=tbl_uk
308-
ERROR: relation "tbl_uk" must have a primary key or not-null unique keys
309-
-- => ERROR
308+
WARNING: relation "tbl_uk" must have a primary key or not-null unique keys
309+
-- => WARNING
310310
\! pg_repack --dbname=contrib_regression --no-order --table=tbl_nn_uk
311311
-- => OK
312312
\! pg_repack --dbname=contrib_regression --no-order --table=tbl_pk_uk
313313
-- => OK
314314
\! pg_repack --dbname=contrib_regression --no-order --table=tbl_nn_puk
315-
ERROR: relation "tbl_nn_puk" must have a primary key or not-null unique keys
316-
-- => ERROR
315+
WARNING: relation "tbl_nn_puk" must have a primary key or not-null unique keys
316+
-- => WARNING

bin/sql/repack.sql

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -178,12 +178,12 @@ CREATE TABLE tbl_pk_uk (col1 int NOT NULL, col2 int NOT NULL, PRIMARY KEY(col1,
178178
CREATE TABLE tbl_nn_puk (col1 int NOT NULL, col2 int NOT NULL);
179179
CREATE UNIQUE INDEX tbl_nn_puk_pcol1_idx ON tbl_nn_puk(col1) WHERE col1 < 10;
180180
\! pg_repack --dbname=contrib_regression --no-order --table=tbl_nn
181-
-- => ERROR
181+
-- => WARNING
182182
\! pg_repack --dbname=contrib_regression --no-order --table=tbl_uk
183-
-- => ERROR
183+
-- => WARNING
184184
\! pg_repack --dbname=contrib_regression --no-order --table=tbl_nn_uk
185185
-- => OK
186186
\! pg_repack --dbname=contrib_regression --no-order --table=tbl_pk_uk
187187
-- => OK
188188
\! pg_repack --dbname=contrib_regression --no-order --table=tbl_nn_puk
189-
-- => ERROR
189+
-- => WARNING

0 commit comments

Comments
 (0)