Re: syslog_line_prefix - Mailing list pgsql-hackers

From Magnus Hagander
Subject Re: syslog_line_prefix
Date
Msg-id 9837222c0909251333m1ad26958ra487c82690e48446@mail.gmail.com
Whole thread Raw
In response to Re: syslog_line_prefix  (Robert Haas <robertmhaas@gmail.com>)
Responses Re: syslog_line_prefix
List pgsql-hackers
On Fri, Sep 25, 2009 at 22:18, Robert Haas <robertmhaas@gmail.com> wrote:
> On Fri, Sep 25, 2009 at 4:06 PM, Magnus Hagander <magnus@hagander.net> wrote:
>> Other than if you're logging all your queries (or over <n> time, where
>> <n> is very small), I've never seen a system with performance issues
>> from logging. I'm sure others may have, but not me.
>>
>> Is there really any log output other than the
>> query-logging-for-performance-analysis that is likely to cause any
>> real load on the system? If not, perhaps we need to break out that
>> part to a separate codepath instead, and optimize that one for speed,
>> while optimizing the other paths for flexibility?
>
> Not sure, but I doubt it's that easy.

If we are talking about the "log query duration" or "log queries
longer than <n>" that's a single location in the code. It can't be
that hard...


-- Magnus HaganderMe: http://www.hagander.net/Work: http://www.redpill-linpro.com/


pgsql-hackers by date:

Previous
From: Magnus Hagander
Date:
Subject: Re: syslog_line_prefix
Next
From: Tom Lane
Date:
Subject: formrdesc() versus relation rowtype OIDs