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