Re: [PERFORM] syslog slowing the database?

From: "Chris Smith" <chris(at)interspire(dot)com>
To: "'Christopher Kings-Lynne'" <chriskl(at)familyhealth(dot)com(dot)au>
Cc: "'PgSQL Performance ML'" <pgsql-performance(at)postgresql(dot)org>, "'Postgres Admin List'" <pgsql-admin(at)postgresql(dot)org>
Subject: Re: [PERFORM] syslog slowing the database?
Date: 2004-03-11 01:37:38
Message-ID: 000201c40709$70e5e070$0d00a8c0@chris
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin pgsql-performance

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(at)postgresql(dot)org
[mailto:pgsql-performance-owner(at)postgresql(dot)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(at)postgresql(dot)org)

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Bruno Wolff III 2004-03-11 02:03:46 Re: [PERFORM] syslog slowing the database?
Previous Message Christopher Kings-Lynne 2004-03-11 01:34:54 Re: [PERFORM] syslog slowing the database?

Browse pgsql-performance by date

  From Date Subject
Next Message Bruno Wolff III 2004-03-11 02:03:46 Re: [PERFORM] syslog slowing the database?
Previous Message Christopher Kings-Lynne 2004-03-11 01:34:54 Re: [PERFORM] syslog slowing the database?