Skip site navigation (1) Skip section navigation (2)

Re: pipe chunking vs Windows

From: Magnus Hagander <magnus(at)hagander(dot)net>
To: Andrew Dunstan <andrew(at)dunslane(dot)net>
Cc: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: pipe chunking vs Windows
Date: 2007-07-29 16:39:17
Message-ID: 46ACC2B5.3000409@hagander.net (view raw or flat)
Thread:
Lists: 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

In response to

pgsql-hackers by date

Next:From: korry.douglasDate: 2007-07-29 20:56:26
Subject: Re: pipe chunking vs Windows
Previous:From: Andrew DunstanDate: 2007-07-29 16:35:58
Subject: Re: pipe chunking vs Windows

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group