postgresql/src/backend/postmaster
Tom Lane 8a88e57ee2 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:37:18 -04:00
..
autovacuum.c Fix leakage of cost_limit when multiple autovacuum workers are active. 2010-11-19 22:28:35 -05:00
bgwriter.c Improve coding around the fsync request queue. 2012-07-17 16:56:08 -04:00
fork_process.c Update copyrights in source tree to 2008. 2008-01-01 19:46:01 +00:00
Makefile Create a new dedicated Postgres process, "wal writer", which exists to write 2007-07-24 04:54:09 +00:00
pgarch.c Cause the archiver process to adopt new postgresql.conf settings (particularly 2010-05-11 16:42:40 +00:00
pgstat.c Fix an oversight in an 8.3-era patch: pgstat_initstats should allow stats 2009-10-02 22:50:03 +00:00
postmaster.c Fix syslogger so that log_truncate_on_rotation works in the first rotation. 2012-07-31 14:37:18 -04:00
syslogger.c Fix syslogger so that log_truncate_on_rotation works in the first rotation. 2012-07-31 14:37:18 -04:00
walwriter.c Update copyrights in source tree to 2008. 2008-01-01 19:46:01 +00:00