1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-27 12:41:57 +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,16 +1,10 @@
--
-- first, define the datatype. Turn off echoing so that expected file
-- does not depend on contents of ltree.sql.
--
SET client_min_messages = warning;
\set ECHO none
psql:ltree.sql:9: NOTICE: type "ltree" is not yet defined
DETAIL: Creating a shell type definition.
psql:ltree.sql:14: NOTICE: argument type ltree is only a shell
psql:ltree.sql:306: NOTICE: type "lquery" is not yet defined
DETAIL: Creating a shell type definition.
psql:ltree.sql:311: NOTICE: argument type lquery is only a shell
psql:ltree.sql:417: NOTICE: type "ltxtquery" is not yet defined
DETAIL: Creating a shell type definition.
psql:ltree.sql:422: NOTICE: argument type ltxtquery is only a shell
psql:ltree.sql:484: NOTICE: type "ltree_gist" is not yet defined
DETAIL: Creating a shell type definition.
psql:ltree.sql:489: NOTICE: argument type ltree_gist is only a shell
RESET client_min_messages;
SELECT ''::ltree;
ltree
-------

View File

@ -1,6 +1,12 @@
--
-- first, define the datatype. Turn off echoing so that expected file
-- does not depend on contents of ltree.sql.
--
SET client_min_messages = warning;
\set ECHO none
\i ltree.sql
\set ECHO all
RESET client_min_messages;
SELECT ''::ltree;
SELECT '1'::ltree;