pipe chunks protocol

From: Andrew Dunstan <andrew(at)dunslane(dot)net>
To: "Patches (PostgreSQL)" <pgsql-patches(at)postgresql(dot)org>
Subject: pipe chunks protocol
Date: 2007-06-13 15:51:46
Message-ID: 46701292.7030602@dunslane.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

Responses

Browse pgsql-patches by date

  From Date Subject
Next Message Andrew Dunstan 2007-06-13 15:53:03 Re: pipe chunks protocol
Previous Message Tom Lane 2007-06-13 13:51:15 Re: DROP TABLE and autovacuum