Re: Postgres server output logfile - Mailing list pgsql-general

From Giles Lean
Subject Re: Postgres server output logfile
Date
Msg-id 2595.1044308343@nemeton.com.au
Whole thread Raw
In response to Re: Postgres server output logfile  (Jean-Luc Lachance <jllachan@nsd.ca>)
Responses Re: Postgres server output logfile
List pgsql-general
Jean-Luc Lachance <jllachan@nsd.ca> writes:

> He is my very simple solution:

One of the constraints on the code that I wrote was that it try to be
robust.  Having the database go down because the log writing program
exited due to a transiently full filesystem was thought to be
undesirable -- see Tom Lane's comments in the archives.

>     if ( output == NULL)
>         {
>         fprintf( stderr, "%s: cannot write to file: %s", argv[ 0], argv[
> 1]);
>         exit( 2);
>         }

The Apache rotatelogs program is similar, or was when I looked at it
last.  Perhaps they've worked on it recently.  (Perhaps I should offer
some improvements ... in my copious spare time. :-)

Regards,

Giles

pgsql-general by date:

Previous
From: Francisco Reyes
Date:
Subject: Dealing with complex queries
Next
From: "Patric Bechtel"
Date:
Subject: Re: 335 times faster (!) [Viruschecked]