postgresql/src/backend/postmaster
Tom Lane b76356ac22 Fix syslogger so that log_truncate_on_rotation works in the first rotation.
In the original coding of the log rotation stuff, we did not bother to make
the truncation logic work for the very first rotation after postmaster
start (or after a syslogger crash and restart).  It just always appended
in that case.  It did not seem terribly important at the time, but we've
recently had two separate complaints from people who expected it to work
unsurprisingly.  (Both users tend to restart the postmaster about as often
as a log rotation is configured to happen, which is maybe not typical use,
but still...)  Since the initial log file is opened in the postmaster,
fixing this requires passing down some more state to the syslogger child
process.

It's always been like this, so back-patch to all supported branches.
2012-07-31 14:36:54 -04:00
..
autovacuum.c Introduce timeout handling framework 2012-07-16 22:55:33 -04:00
bgwriter.c Fix management of pendingOpsTable in auxiliary processes. 2012-07-18 15:28:10 -04:00
checkpointer.c Fix statistics breakage from bgwriter/checkpointer process split. 2012-07-18 15:40:31 -04:00
fork_process.c Support Linux's oom_score_adj API as well as the older oom_adj API. 2012-06-13 15:35:52 -04:00
Makefile Refactor xlog.c to create src/backend/postmaster/startup.c 2011-11-02 14:25:01 +00:00
pgarch.c Unify calling conventions for postgres/postmaster sub-main functions 2012-06-25 21:30:12 +03:00
pgstat.c Unify calling conventions for postgres/postmaster sub-main functions 2012-06-25 21:30:12 +03:00
postmaster.c Fix syslogger so that log_truncate_on_rotation works in the first rotation. 2012-07-31 14:36:54 -04:00
startup.c Introduce timeout handling framework 2012-07-16 22:55:33 -04:00
syslogger.c Fix syslogger so that log_truncate_on_rotation works in the first rotation. 2012-07-31 14:36:54 -04:00
walwriter.c Fix management of pendingOpsTable in auxiliary processes. 2012-07-18 15:28:10 -04:00