From 6fc41e9c1a5000f87d0a9c673f69a11adb25d7da Mon Sep 17 00:00:00 2001 From: Josh Kupershmidt Date: Thu, 6 Dec 2012 21:26:12 -0700 Subject: [PATCH] Fix 'installcheck', since the last commit broke the expected output when the table is missing a valid primary/unique key. --- bin/expected/repack.out | 12 ++++++------ bin/sql/repack.sql | 6 +++--- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/bin/expected/repack.out b/bin/expected/repack.out index 3a44f3a..76599e5 100644 --- a/bin/expected/repack.out +++ b/bin/expected/repack.out @@ -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 diff --git a/bin/sql/repack.sql b/bin/sql/repack.sql index 9d385dc..9ee82e8 100644 --- a/bin/sql/repack.sql +++ b/bin/sql/repack.sql @@ -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