1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-28 23:42:10 +03:00

Fix a few contrib regression test scripts that hadn't gotten the word

about best practice for including the module creation scripts: to wit
that you should suppress NOTICE messages.  This avoids creating
regression failures by adding or removing comment lines in the module
scripts.
This commit is contained in:
Tom Lane
2007-11-13 06:29:04 +00:00
parent 0614c5e5fd
commit 30e2c42e00
12 changed files with 48 additions and 30 deletions

View File

@ -1,7 +1,10 @@
--
-- first, define the datatype. Turn off echoing so that expected file
-- does not depend on contents of pg_tgrm.sql.
--
SET client_min_messages = warning;
\set ECHO none
psql:pg_trgm.sql:44: NOTICE: type "gtrgm" is not yet defined
DETAIL: Creating a shell type definition.
psql:pg_trgm.sql:49: NOTICE: argument type gtrgm is only a shell
RESET client_min_messages;
select show_trgm('');
show_trgm
-----------

View File

@ -1,6 +1,12 @@
--
-- first, define the datatype. Turn off echoing so that expected file
-- does not depend on contents of pg_tgrm.sql.
--
SET client_min_messages = warning;
\set ECHO none
\i pg_trgm.sql
\set ECHO all
RESET client_min_messages;
select show_trgm('');
select show_trgm('(*&^$@%@');