Re: Feature: POSIX Shared memory support - Mailing list pgsql-patches

From Magnus Hagander
Subject Re: Feature: POSIX Shared memory support
Date
Msg-id 20070207133250.GB23539@svr2.hagander.net
Whole thread Raw
In response to Re: Feature: POSIX Shared memory support  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Feature: POSIX Shared memory support  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-patches
On Tue, Feb 06, 2007 at 11:08:51PM -0500, Tom Lane wrote:
> "Takayuki Tsunakawa" <tsunakawa.takay@jp.fujitsu.com> writes:
> > From: "Tom Lane" <tgl@sss.pgh.pa.us>
> >> the POSIX API provides no way to detect whether anyone else is
> >> attached to the segment.  Not being able to tell that is a tremendous
> >> robustness hit for us.
>
> > How is this done on Windows?  Is it possible to count the number of
> > processes that attach a shared memory?
>
> AFAIK the Windows port is simply wrong/insecure on this point --- it's
> one of the reasons you'll never see me recommending Windows as the OS
> for a production Postgres server.

What exactly is the failure case? Might be able to figure out a way to
do what we want on win32 even if it's not possible to do it exactly with
the sysv semantics.

//Magnus

pgsql-patches by date:

Previous
From: Magnus Hagander
Date:
Subject: vcbuild needs strlcat
Next
From: Alvaro Herrera
Date:
Subject: Re: vcbuild needs strlcat