Logfile created when not needed? - Mailing list pgsql-hackers

From Magnus Hagander
Subject Logfile created when not needed?
Date
Msg-id 6BCB9D8A16AC4241919521715F4D8BCEA0FBD1@algol.sollentuna.se
Whole thread Raw
Responses Re: Logfile created when not needed?  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
Digging into several win32 related issues right now, so I don't have the
time to investigate ATM, but I figured I should get it out here:

If I configure log_destination='eventlog', and then
redirect_stderr='on', PostgreSQL will attempt to create a logfile in
pg_log anyway. This file remains empty (at least through my test), but
it is created, and if it fails to be created, the postmaster won't start
at all.

I may be missing something and there is a point to this, but if it's
never used it should probably not be created in the first place, should
it?

(I would assume the same thing happens if you set
log_destination='syslog', but haven't tested that)

//Magnus


pgsql-hackers by date:

Previous
From: "Magnus Hagander"
Date:
Subject: AllocFile debug code
Next
From: "Magnus Hagander"
Date:
Subject: pg_regress starting postmaster