| From: | "scott(dot)marlowe" <scott(dot)marlowe(at)ihs(dot)com> |
|---|---|
| To: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
| Cc: | Christopher Kings-Lynne <chriskl(at)familyhealth(dot)com(dot)au>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Greg Spiegelberg <gspiegelberg(at)cranel(dot)com>, 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-15 15:57:25 |
| Message-ID: | Pine.LNX.4.33.0403150856460.6471-100000@css120.ihs.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-admin 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... :-)
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Martin Sarsale | 2004-03-15 21:07:03 | nodeRead: did not find '}' at end of plan node |
| Previous Message | Bruce Momjian | 2004-03-15 15:38:02 | Re: [PERFORM] syslog slowing the database? |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Greg Stark | 2004-03-15 17:15:45 | Re: Large CASE-statement is pretty slow? |
| Previous Message | Bruce Momjian | 2004-03-15 15:38:02 | Re: [PERFORM] syslog slowing the database? |