Обсуждение: Log to Syslog or rotatelogs? Advice Please

Поиск
Список
Период
Сортировка

Log to Syslog or rotatelogs? Advice Please

От
David Wagoner
Дата:
Postgres 7.3.9 on RH Linux...

Setting up new production server-

Is it better to send the postmaster log to Syslog or to rotatelogs?


TIA,

david

Re: Log to Syslog or rotatelogs? Advice Please

От
Scott Marlowe
Дата:
On Mon, 2005-03-14 at 08:37, David Wagoner wrote:
> Postgres 7.3.9 on RH Linux...
>
> Setting up new production server-
>
> Is it better to send the postmaster log to Syslog or to rotatelogs?

That really depends more on your production environment than any thing
else.

I use apache's rotatelogs with my systems, because the only "log server"
we have is for application logging.  If you use syslogd, be sure read
the man page, where they mention the - character:

"The - may only be used to prefix a filename if you want to omit
sync’ing the file after every write to it."

Which is very important if you want postgresql to keep running speedily.