Re: Proof of concept: standalone backend with full FE/BE protocol

Magnus Hagander <magnus@hagander.net>

From: Magnus Hagander <magnus@hagander.net>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Noah Misch <noah@leadboat.com>, hlinnaka@iki.fi, pgsql-hackers@postgresql.org
Date: 2012-09-03T11:10:47Z
Lists: pgsql-hackers
On Mon, Sep 3, 2012 at 6:42 AM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> Noah Misch <noah@leadboat.com> writes:
>> Windows does not have socketpair(), nor a strict pipe() equivalent.  I expect
>> switching to socketpair() makes the Windows side trickier in some ways and
>> simpler in others.  +1 for exploring that direction first.
>
> A bit of googling suggests that emulating socketpair() on Windows is not
> that hard: basically you create an accepting socket and connect to it.
> Ugly I guess but likely to be nicer than emulating the two-pipes trick
> exactly.

That sounds a lot like what we were doing in pgpipe() before..  It was
removed in d2c1740dc275543a46721ed254ba3623f63d2204, but that's
because it was dead at the time. Do we need to bring it back?

-- 
 Magnus Hagander
 Me: http://www.hagander.net/
 Work: http://www.redpill-linpro.com/


Commits

Same data as JSON: GET /api/v1/messages/:b64id/commits the thread's linked commits as JSON, with link sources. API reference →
  1. Remove now redundant pgpipe code.