]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 361175: [PostgreSQL] Too many "NOTICE" messages from checksetup.pl
authormkanat%bugzilla.org <>
Mon, 20 Nov 2006 12:29:55 +0000 (12:29 +0000)
committermkanat%bugzilla.org <>
Mon, 20 Nov 2006 12:29:55 +0000 (12:29 +0000)
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=bkor, a=justdave

Bugzilla/DB/Pg.pm

index a8f54f90365c3db3ff99c1ea4ea2d6b665245088..34fe66a0251e383fa32e64cb405a737270089039 100644 (file)
@@ -66,7 +66,11 @@ sub new {
     # construct the DSN from the parameters we got
     my $dsn = "DBI:Pg:host=$host;dbname=$dbname";
     $dsn .= ";port=$port" if $port;
-   
+
+    # This stops Pg from printing out lots of "NOTICE" messages when
+    # creating tables.
+    $dsn .= ";options='-c client_min_messages=warning'";
+
     my $self = $class->db_new($dsn, $user, $pass);
 
     # all class local variables stored in DBI derived class needs to have