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)
commit16c42973737198a0e266c2c9ff8915aad556b742
tree3dc5cd83d562a4d5b2e2f3ade4e65aef4553846c
parentf3b600c3182ad67ff30196db3f5e0a71e9184ae1
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