Re: pipe chunks protocol

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Andrew Dunstan <andrew(at)dunslane(dot)net>
Cc: "Patches (PostgreSQL)" <pgsql-patches(at)postgresql(dot)org>
Subject: Re: pipe chunks protocol
Date: 2007-06-13 21:01:24
Message-ID: 18156.1181768484@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-patches

Andrew Dunstan <andrew(at)dunslane(dot)net> writes:
>> 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').

I didn't like this patch much --- it broke the API of
write_syslogger_file, which is supposed to just write what it's given
(and it is used from outside syslogger.c with that expectation). Also
the way it slung unconsumed data back and forth between two buffers
seemed both confusing and inefficient. Here's a revised version.

In my testing, I found that a standard "make installcheck" run produces
only one message large enough to be split (the "infinite_recurse" thing
in errors.sql), so this is definitely not a Good Enough test. Maybe
we could get Ed L. or one of the other complainants to try it. (The
patch seems to need some adjustment to apply against 8.2, though.)

regards, tom lane

Attachment Content-Type Size
logpipe-2.patch.gz application/octet-stream 5.2 KB

In response to

Responses

Browse pgsql-patches by date

  From Date Subject
Next Message Florian G. Pflug 2007-06-13 22:04:57 Re: Controlling Load Distributed Checkpoints
Previous Message Alvaro Herrera 2007-06-13 18:49:11 Re: [PATCHES] Autovacuum launcher doesn't notice death of postmaster immediately