Re: [PERFORM] syslog slowing the database?

Поиск
Список
Период
Сортировка
От Chris Smith
Тема Re: [PERFORM] syslog slowing the database?
Дата
Msg-id 000201c40709$70e5e070$0d00a8c0@chris
обсуждение исходный текст
Ответ на Re: [PERFORM] syslog slowing the database?  (Christopher Kings-Lynne <chriskl@familyhealth.com.au>)
Список 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 по дате отправления:

Предыдущее
От: "Nick Fankhauser - Doxpop"
Дата:
Сообщение: using disable-triggers in pg_dump
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: using disable-triggers in pg_dump