Re: [PERFORM] syslog slowing the database? - Mailing list pgsql-admin

From Chris Smith
Subject Re: [PERFORM] syslog slowing the database?
Date
Msg-id 000201c40709$70e5e070$0d00a8c0@chris
Whole thread Raw
In response to Re: [PERFORM] syslog slowing the database?  (Christopher Kings-Lynne <chriskl@familyhealth.com.au>)
List pgsql-admin
It might depend on how you're rotating it.

Try the copy/truncate method instead of moving the log file. If you move
the log file to another filename you usually have to restart the app
doing the logging before it starts logging again.

Chris.

-----Original Message-----
From: pgsql-performance-owner@postgresql.org
[mailto:pgsql-performance-owner@postgresql.org] On Behalf Of Christopher
Kings-Lynne
Sent: Thursday, March 11, 2004 12:35 PM
To: Tom Lane
Cc: Greg Spiegelberg; PgSQL Performance ML; Postgres Admin List
Subject: Re: [PERFORM] [ADMIN] syslog slowing the database?


> 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.

Not an option I'm afraid.  PostgreSQL just jams and stops logging after
the first rotation...

I've read in the docs that syslog logging is the only "production"
solution...

Chris


---------------------------(end of broadcast)---------------------------
TIP 2: you can get off all lists at once with the unregister command
    (send "unregister YourEmailAddressHere" to majordomo@postgresql.org)



pgsql-admin by date:

Previous
From: "Nick Fankhauser - Doxpop"
Date:
Subject: using disable-triggers in pg_dump
Next
From: Bruce Momjian
Date:
Subject: Re: using disable-triggers in pg_dump