]> granicus.if.org Git - postgresql/commit
Fix failure to rotate postmaster log file for size reasons on Windows.
authorTom Lane <tgl@sss.pgh.pa.us>
Thu, 24 Jan 2013 03:08:01 +0000 (22:08 -0500)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 24 Jan 2013 03:08:14 +0000 (22:08 -0500)
commit14ba9b11eab37f7cf44d41030eb2c0208795783d
tree3473368d044b554d9b16371edea9f60895fa4949
parenta79ae0bc0d454b9f2c95a67c8eeff38c440abf99
Fix failure to rotate postmaster log file for size reasons on Windows.

When we eliminated "unnecessary" wakeups of the syslogger process, we
broke size-based logfile rotation on Windows, because on that platform
data transfer is done in a separate thread.  While non-Windows platforms
would recheck the output file size after every log message, Windows only
did so when the control thread woke up for some other reason, which might
be quite infrequent.  Per bug #7814 from Tsunezumi.  Back-patch to 9.2
where the problem was introduced.

Jeff Janes
src/backend/postmaster/syslogger.c