]> granicus.if.org Git - postgresql/commitdiff
Fix a few contrib regression test scripts that hadn't gotten the word
authorTom Lane <tgl@sss.pgh.pa.us>
Tue, 13 Nov 2007 06:29:04 +0000 (06:29 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Tue, 13 Nov 2007 06:29:04 +0000 (06:29 +0000)
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.

12 files changed:
contrib/btree_gist/expected/init.out
contrib/btree_gist/sql/init.sql
contrib/dblink/expected/dblink.out
contrib/dblink/sql/dblink.sql
contrib/ltree/expected/ltree.out
contrib/ltree/sql/ltree.sql
contrib/pg_trgm/expected/pg_trgm.out
contrib/pg_trgm/sql/pg_trgm.sql
contrib/pgcrypto/expected/init.out
contrib/pgcrypto/sql/init.sql
contrib/tablefunc/expected/tablefunc.out
contrib/tablefunc/sql/tablefunc.sql

index 1dbbfd74ec291c9e29a09ccb1b17b4d739c64076..c8082495456726b08c21d533bb600ec27c54ff4f 100644 (file)
@@ -2,19 +2,6 @@
 -- first, define the datatype.  Turn off echoing so that expected file
 -- does not depend on contents of btree_gist.sql.
 --
+SET client_min_messages = warning;
 \set ECHO none
-psql:btree_gist.sql:7: NOTICE:  type "gbtreekey4" is not yet defined
-DETAIL:  Creating a shell type definition.
-psql:btree_gist.sql:12: NOTICE:  argument type gbtreekey4 is only a shell
-psql:btree_gist.sql:23: NOTICE:  type "gbtreekey8" is not yet defined
-DETAIL:  Creating a shell type definition.
-psql:btree_gist.sql:28: NOTICE:  argument type gbtreekey8 is only a shell
-psql:btree_gist.sql:39: NOTICE:  type "gbtreekey16" is not yet defined
-DETAIL:  Creating a shell type definition.
-psql:btree_gist.sql:44: NOTICE:  argument type gbtreekey16 is only a shell
-psql:btree_gist.sql:55: NOTICE:  type "gbtreekey32" is not yet defined
-DETAIL:  Creating a shell type definition.
-psql:btree_gist.sql:60: NOTICE:  argument type gbtreekey32 is only a shell
-psql:btree_gist.sql:71: NOTICE:  type "gbtreekey_var" is not yet defined
-DETAIL:  Creating a shell type definition.
-psql:btree_gist.sql:76: NOTICE:  argument type gbtreekey_var is only a shell
+RESET client_min_messages;
index 04fdc845f52c2059634a42520baa53057bfecf93..7fafde12d8b0a67dd00415546a2d07ed2a887fb4 100644 (file)
@@ -2,6 +2,8 @@
 -- first, define the datatype.  Turn off echoing so that expected file
 -- does not depend on contents of btree_gist.sql.
 --
+SET client_min_messages = warning;
 \set ECHO none
 \i btree_gist.sql
 \set ECHO all
+RESET client_min_messages;
index 966da0fd6e757c0ba2bed27bf83e0f6952908c43..bdd2f9926f64448d09c5b7349c92e5bdb9047d8a 100644 (file)
@@ -6,7 +6,9 @@ SET search_path = public;
 --
 -- Turn off echoing so that expected file does not depend on
 -- contents of dblink.sql.
+SET client_min_messages = warning;
 \set ECHO none
+RESET client_min_messages;
 CREATE TABLE foo(f1 int, f2 text, f3 text[], primary key (f1,f2));
 NOTICE:  CREATE TABLE / PRIMARY KEY will create implicit index "foo_pkey" for table "foo"
 INSERT INTO foo VALUES (0,'a','{"a0","b0","c0"}');
index 52a3d049b9c2db92318547d14480cec938330c32..277500e6f164ed75a4f5c3209f55819294cb5a15 100644 (file)
@@ -7,9 +7,11 @@ SET search_path = public;
 --
 -- Turn off echoing so that expected file does not depend on
 -- contents of dblink.sql.
+SET client_min_messages = warning;
 \set ECHO none
 \i dblink.sql
 \set ECHO all
+RESET client_min_messages;
 
 CREATE TABLE foo(f1 int, f2 text, f3 text[], primary key (f1,f2));
 INSERT INTO foo VALUES (0,'a','{"a0","b0","c0"}');
index 96a1876bfc7bcc78a14f3bbe2e7a7c77cae12a05..7f61e569cf99329c0754bf822a30ebd0fe4c2498 100644 (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 
 -------
index 3a155ea22b8f4025fb50d93739bc961ead60c757..9241c2a0cb53f7f78a0c2aa6d98bc9aa82c13a66 100644 (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;
index 3633b25ebcf3c1f5d44cee82df1970d228db4647..98385347295d70f6b618d6ff40f0af733d54c17c 100644 (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 
 -----------
index 018ad858725a99ab765856dd2ba96c0f7de71437..13045827ac7734e09baa0e9c92aca9546022c61e 100644 (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('(*&^$@%@');
index 3252d4276ee2043ce52379ccbe96dc1d2533d0e4..6a5710d5a1fc887c21bd0dbb68df2c76ffb57db4 100644 (file)
@@ -1,7 +1,13 @@
 --
 -- init pgcrypto
 --
+--
+-- first, define the functions.  Turn off echoing so that expected file
+-- does not depend on contents of pgcrypto.sql.
+--
+SET client_min_messages = warning;
 \set ECHO none
+RESET client_min_messages;
 -- check for encoding fn's
 SELECT encode('foo', 'hex');
  encode 
index e536e67ea3ec54828d3b242d587d9c36d2df8f61..a58b3f0144dc2ee23a5fc9890ad5b590701e4103 100644 (file)
@@ -2,9 +2,15 @@
 -- init pgcrypto
 --
 
+--
+-- first, define the functions.  Turn off echoing so that expected file
+-- does not depend on contents of pgcrypto.sql.
+--
+SET client_min_messages = warning;
 \set ECHO none
 \i pgcrypto.sql
 \set ECHO all
+RESET client_min_messages;
 
 -- check for encoding fn's
 SELECT encode('foo', 'hex');
index 9a0f3835d4878a1bc372d825f42e88640dabc12f..15ef758ed71b631973ca053b922544dbafc7e58b 100644 (file)
@@ -2,7 +2,9 @@
 -- first, define the functions.  Turn off echoing so that expected file
 -- does not depend on contents of tablefunc.sql.
 --
+SET client_min_messages = warning;
 \set ECHO none
+RESET client_min_messages;
 --
 -- normal_rand()
 -- no easy way to do this for regression testing
index 815ef3e86be911c5ec74d259837ce88e6c7eca40..9f559b397780da51f6f0369645768d4131a06cd5 100644 (file)
@@ -2,9 +2,11 @@
 -- first, define the functions.  Turn off echoing so that expected file
 -- does not depend on contents of tablefunc.sql.
 --
+SET client_min_messages = warning;
 \set ECHO none
 \i tablefunc.sql
 \set ECHO all
+RESET client_min_messages;
 
 --
 -- normal_rand()