Re: Postgres server output logfile

From: Giles Lean <giles(at)nemeton(dot)com(dot)au>
To: Mintoo Lall <tlqmail(at)yahoo(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Postgres server output logfile
Date: 2003-01-30 22:33:37
Message-ID: 12650.1043966017@hpchs.cup.hp.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Tom Lane wrote:

> Unfortunately not. The recommended procedure for production servers is
> not to send the postmaster's stdout/stderr directly to a disk file, but
> to pipe it into some script that rotates the output. There's a usable
> script in the Apache distribution, or you can roll your own with little
> effort. ...

There was some interest in such logging programs a while back, and I
wrote this one:

ftp://ftp.nemeton.com.au/pub/src/logwrite-1.0alpha.tar.gz

I've attached a message I sent out when I packaged that up. I had no
time back then (2001, yikes) and didn't receive any comments or bug
reports.

If there is interest now, then I'll update the documentation, format
the code per the PostgreSQL coding standards and offer it again.

A patch to the postmaster so that it starts the log program and can
re-start it if someone kills it would improve robustness even further,
but 'kill -9' on the postmaster is bad, and so is 'kill -9' on the log
program. :-)

Regards,

Giles

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Iker Arizmendi 2003-01-30 22:43:47 Re: psql default language
Previous Message Oliver Vecernik 2003-01-30 22:29:23 Re: psql default language