Implement a chunking protocol for writes to the syslogger pipe, with messages

Andrew Dunstan <andrew@dunslane.net>

Commit: bd2cb9aaa55d2c6760e2722557a8a87b0bd40945
Author: Andrew Dunstan <andrew@dunslane.net>
Date: 2007-06-14T01:48:51Z
Releases: 8.3.0
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

Files

PathChange+/−
src/backend/postmaster/syslogger.c modified +255 −13
src/backend/utils/error/elog.c modified +41 −2
src/include/postmaster/syslogger.h modified +49 −1