Closed Bug 361175 Opened 19 years ago Closed 19 years ago

[PostgreSQL] Too many "NOTICE" messages from checksetup.pl

Categories

(Bugzilla :: Installation & Upgrading, defect)

2.23.3
defect
Not set
normal

Tracking

()

RESOLVED FIXED
Bugzilla 2.22

People

(Reporter: mkanat, Assigned: mkanat)

Details

Attachments

(1 file, 1 obsolete file)

I *finally* found out today how to stop the "NOTICE" messages from printing in checksetup.pl: $ENV{PGOPTIONS}='-c client_min_messages=warning'
man DBD::Pg has some information on how to set PGOPTIONS as a DBI connect 'options' parameter. I think that is cleaner than setting an environment variable.
Attached patch v1 (obsolete) — Splinter Review
I assert that I've tested this, and that it does what it's supposed to do. It's going to make Pg users so much happier. I hate those darn NOTICE messages. So, Colin, could you just look this over and assert that it looks like perl?
Assignee: installation → mkanat
Status: NEW → ASSIGNED
Attachment #245915 - Flags: review?(colin.ogilvie)
Comment on attachment 245915 [details] [diff] [review] v1 r=me by inspection - looks like Perl to me.
Attachment #245915 - Flags: review?(colin.ogilvie) → review+
Flags: approval?
Okay, actually, I'm going to go with bkor's suggestion instead.
Flags: approval?
Attached patch v2Splinter Review
Okay. It actually ended up being trivial to do it that way.
Attachment #245915 - Attachment is obsolete: true
Attachment #245916 - Flags: review?(bugzilla-mozilla)
Comment on attachment 245916 [details] [diff] [review] v2 Tested, works.
Attachment #245916 - Flags: review?(bugzilla-mozilla) → review+
Flags: approval?
This would probably make sense to also commit this patch on the 2.22 branch, assuming the patch works there too (and with Pg 7.3.x!).
I agree with LpSolit, go for this on 2.22 as well if it's applicable.
Flags: approval? → approval+
I used justdave's verbal approval above to check it in to 2.22, but we should also get the a2.22+ for this bug. tip: Checking in Bugzilla/DB/Pg.pm; /cvsroot/mozilla/webtools/bugzilla/Bugzilla/DB/Pg.pm,v <-- Pg.pm new revision: 1.23; previous revision: 1.22 done 2.22: Checking in Bugzilla/DB/Pg.pm; /cvsroot/mozilla/webtools/bugzilla/Bugzilla/DB/Pg.pm,v <-- Pg.pm new revision: 1.18.2.1; previous revision: 1.18 done
Status: ASSIGNED → RESOLVED
Closed: 19 years ago
Flags: approval2.22?
Resolution: --- → FIXED
Target Milestone: Bugzilla 3.0 → Bugzilla 2.22
Flags: approval2.22? → approval2.22+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: