Re: Pre-forking backend - Mailing list pgsql-hackers

From Doug McNaught
Subject Re: Pre-forking backend
Date
Msg-id m3ofnsu30w.fsf@belphigor.mcnaught.org
Whole thread Raw
In response to Re: Pre-forking backend  (Gavin Sherry <swm@linuxworld.com.au>)
Responses Re: Pre-forking backend
List pgsql-hackers
Gavin Sherry <swm@linuxworld.com.au> writes:

> This aside, isn't it possible to just copy the socket and some
> data about the database required into shared memory and have the preforked
> children pick the socket up from there.

Ummm....  No.  There's no Unix API for doing so.

You can pass open file descriptors across Unix domain sockets on most
systems, which is a possible way to address the problem, but probably
not worth it for the reasons discussed earlier.

-Doug
-- 
In a world of steel-eyed death, and men who are fighting to be warm,
Come in, she said, I'll give you shelter from the storm.    -Dylan


pgsql-hackers by date:

Previous
From: Tatsuo Ishii
Date:
Subject: PL/pgSQL bug?
Next
From: Marko Kreen
Date:
Subject: Re: Glitch in handling of postmaster -o options