From 526d26456d474e7b416cc030d217c5774e5b3dfb Mon Sep 17 00:00:00 2001 From: "mkanat%bugzilla.org" Date: Mon, 20 Nov 2006 04:29:55 +0000 Subject: [PATCH] Bug 361175: [PostgreSQL] Too many "NOTICE" messages from checksetup.pl Patch By Max Kanat-Alexander r=bkor, a=justdave git-svn-id: svn://10.0.0.236/trunk@215459 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/webtools/bugzilla/Bugzilla/DB/Pg.pm | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/mozilla/webtools/bugzilla/Bugzilla/DB/Pg.pm b/mozilla/webtools/bugzilla/Bugzilla/DB/Pg.pm index ff596ad0d60..f6a520936c6 100644 --- a/mozilla/webtools/bugzilla/Bugzilla/DB/Pg.pm +++ b/mozilla/webtools/bugzilla/Bugzilla/DB/Pg.pm @@ -62,7 +62,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