Silence error message during test

It is different across server versions.
This commit is contained in:
Daniele Varrazzo
2012-11-11 23:38:38 +00:00
parent 95c196dd33
commit a92fefab8a
2 changed files with 7 additions and 2 deletions

View File

@ -100,7 +100,11 @@ ALTER TABLE tbl_with_dropped_toast DROP COLUMN t;
INSERT INTO tbl_badindex VALUES(1, 10);
INSERT INTO tbl_badindex VALUES(2, 10);
-- This will fail. Silence the message as it's different across PG versions.
SET client_min_messages = fatal;
CREATE UNIQUE INDEX CONCURRENTLY idx_badindex_n ON tbl_badindex (n);
SET client_min_messages = warning;
INSERT INTO tbl_idxopts VALUES (0, 'abc'), (1, 'aaa'), (2, NULL), (3, 'bbb');