Re: serverlog rotation/functions - Mailing list pgsql-hackers

From Tom Lane
Subject Re: serverlog rotation/functions
Date
Msg-id 20065.1089984593@sss.pgh.pa.us
Whole thread Raw
In response to Re: serverlog rotation/functions  (Andreas Pflug <pgadmin@pse-consulting.de>)
Responses Re: serverlog rotation/functions
List pgsql-hackers
Andreas Pflug <pgadmin@pse-consulting.de> writes:
> In-use check is easy for the backend, if the syslog process publishes 
> the current logfile's timestamp in sharedmem.

You really haven't absorbed any of the objections I've raised, have you?
I don't want the log process connected to shared mem at *all*, and see
no particularly good reason why it should be.

> We can use a GUC variable for the log_directory (not log_destination); 
> anyway, I'd like the filenames to be selected by the server.

The directory should definitely be a GUC variable.  The individual
filenames should probably be of the form <prefix><timestamp>, where
the server dictates the format of the timestamp (and we choose it so
that the names sort correctly).  We could let the prefix be
user-selectable or make it hard-wired; I don't have a strong feeling
about that either way.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: [pgsql-hackers-win32] Weird new time zone
Next
From: Tom Lane
Date:
Subject: Re: Point in Time Recovery