pipe chunks protocol - Mailing list pgsql-patches

From Andrew Dunstan
Subject pipe chunks protocol
Date
Msg-id 46701292.7030602@dunslane.net
Whole thread Raw
Responses Re: pipe chunks protocol  (Andrew Dunstan <andrew@dunslane.net>)
List pgsql-patches
This patch implements the protocol Tom suggested for writing to the
syslogger pipe. It seems to pass my tests (basically "make installcheck"
against a server with stderr redirection turned on and log_statement set
to 'all').

The effect of this should be to prevent two problems:
. partial messages get written to the log file, which messes with
rotation, and
. messages from various backends get interleaved, causing garbled logs.

Please review ASAP. I want to get this applied soon so that a) it gets
wider testing and b) I can use it as the basis for the adapted CSV log
patch. If this is acceptable I intend to backpatch this all the way to
wherever we started using the syslogger pipe (was that 8.0?).

cheers

andrew


pgsql-patches by date:

Previous
From: Tom Lane
Date:
Subject: Re: [HACKERS] COPYable logs status
Next
From: Andrew Dunstan
Date:
Subject: Re: pipe chunks protocol