Re: pipe chunking vs Windows - Mailing list pgsql-hackers

From Magnus Hagander
Subject Re: pipe chunking vs Windows
Date
Msg-id 46ACC2B5.3000409@hagander.net
Whole thread Raw
In response to Re: pipe chunking vs Windows  (Andrew Dunstan <andrew@dunslane.net>)
List pgsql-hackers
Andrew Dunstan wrote:
>> Uh, see port.h, lines 212-224. If you're using the pipe() command to
>> create it, it's used.
>>   
> 
> No, it's the other way around :-) If you use pgpipe() on Unix you're
> calling pipe():

D'oh. You're right, of course. I'm obviously not in a state where I
should be reading C code right now :)

>>> Maybe you should have a good look at src/backend/postmaster/syslogger.c.
>>> If we could get rid of the pipe-read threads and all the special Windows
>>> cruft there that would certainly be an advance.
>>>     
>>
>> I'll try to squeeze some time in to do that - I'll have to read up on
>> the whole pipe/chunk thing first though, so it'll be a while.
>>
> You don't need to understand the protocol (it's a very simple
> packetising protocol). The important point is that we have an anonymous
> pipe (created with CreatePipe) which has been dup'ed into stderr.

Ok.

//Magnus


pgsql-hackers by date:

Previous
From: Andrew Dunstan
Date:
Subject: Re: pipe chunking vs Windows
Next
From: Andrew Dunstan
Date:
Subject: Re: pipe chunking vs Windows