Re: syslog_line_prefix - Mailing list pgsql-hackers

From Alvaro Herrera
Subject Re: syslog_line_prefix
Date
Msg-id 20090915181817.GE3907@alvh.no-ip.org
Whole thread Raw
In response to Re: syslog_line_prefix  (Magnus Hagander <magnus@hagander.net>)
Responses Re: syslog_line_prefix
List pgsql-hackers
Magnus Hagander wrote:

> I'm not sure I like this as a GUC. We're going to end up with a lot of
> different GUCs, and everytime we add a new log destination (admittedly
> not often, of course), that increases even further. And GUCs really
> don't provide the level of flexibility you'd really like to have. I've
> been thinking (long-term) in the direction of a separate config file,
> since that could contain an arbitrary number of lines, with "rules" on
> them (somewhat like pg_hba.conf maybe).

I tend to agree with this idea, but I'm not sure about rejecting the
current patch because of it.

FWIW one of the things that this "rules of logging config" system should
support is configuring each type of server process differently, for
example set min_log_level to debug2 for autovacuum only, etc.

-- 
Alvaro Herrera                                http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support


pgsql-hackers by date:

Previous
From: Andrew Gierth
Date:
Subject: Re: revised hstore patch
Next
From: Andrew Dunstan
Date:
Subject: Re: Timestamp to time_t