Re: [ADMIN] syslog slowing the database?

Поиск
Список
Период
Сортировка
От scott.marlowe
Тема Re: [ADMIN] syslog slowing the database?
Дата
Msg-id Pine.LNX.4.33.0403150856460.6471-100000@css120.ihs.com
обсуждение исходный текст
Ответ на Re: [ADMIN] syslog slowing the database?  (Bruce Momjian <pgman@candle.pha.pa.us>)
Список pgsql-performance
On Mon, 15 Mar 2004, Bruce Momjian wrote:

> scott.marlowe wrote:
> > On Thu, 11 Mar 2004, Christopher Kings-Lynne wrote:
> >
> > > > 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...
> >
> > Can you use the apache log rotator?  It's known to work in my environment
> > (redhat 7.2, postgresql 7.2 and 7.4) with this command to start it in my
> > rc.local file:
> >
> > su - postgres -c 'pg_ctl start | rotatelogs $PGDATA/pglog 86400 2>1&'
>
> Sure, our documentation specifically mentions using rotatelogs.


hehe.  What I meant was can Christopher use it, or does he have a
limitation in his environment where he can't get ahold of the apache log
rotater... :-)


В списке pgsql-performance по дате отправления:

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: [ADMIN] syslog slowing the database?
Следующее
От: Greg Stark
Дата:
Сообщение: Re: Large CASE-statement is pretty slow?