]> granicus.if.org Git - postgresql/commit
Implement a chunking protocol for writes to the syslogger pipe, with messages
authorAndrew Dunstan <andrew@dunslane.net>
Thu, 14 Jun 2007 01:50:14 +0000 (01:50 +0000)
committerAndrew Dunstan <andrew@dunslane.net>
Thu, 14 Jun 2007 01:50:14 +0000 (01:50 +0000)
commit1103beb52a216a3ae1d9d62a91a0adb0d9f60b90
treea2d71012706090717eea049c3bf2430bb573198b
parent09bb3620872389ee1e759296d160f123726910ec
Implement a chunking protocol for writes to the syslogger pipe, with messages
reassembled in the syslogger before writing to the log file. This prevents
partial messages from being written, which mucks up log rotation, and
messages from different backends being interleaved, which causes garbled
logs. Backport as far as 8.0, where the syslogger was introduced.

Tom Lane and Andrew Dunstan
src/backend/postmaster/syslogger.c
src/backend/utils/error/elog.c
src/include/postmaster/syslogger.h