Re: [ADMIN] syslog slowing the database? - Mailing list pgsql-performance

From Tom Lane
Subject Re: [ADMIN] syslog slowing the database?
Date
Msg-id 7688.1078937631@sss.pgh.pa.us
Whole thread Raw
In response to Re: [ADMIN] syslog slowing the database?  (Greg Spiegelberg <gspiegelberg@cranel.com>)
Responses Re: [ADMIN] syslog slowing the database?  (Christopher Kings-Lynne <chriskl@familyhealth.com.au>)
List pgsql-performance
Greg Spiegelberg <gspiegelberg@cranel.com> writes:
> If the log and database were on the same disk I'd be okay with the
> current workaround.  If the ``-'' gave me near the same performance as
> turning syslog off I'd be okay with that too.  However, neither of these
> are the case so there has to be something else blocking between the two
> processes.

You could also consider not using syslog at all: let the postmaster
output to its stderr, and pipe that into a log-rotation program.
I believe some people use Apache's log rotator for this with good
results.

            regards, tom lane

pgsql-performance by date:

Previous
From: "scott.marlowe"
Date:
Subject: Re: optimizing large query with IN (...)
Next
From: Josh Berkus
Date:
Subject: Re: Cluster and vacuum performance