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

From Alvaro Herrera
Subject Re: Feature: POSIX Shared memory support
Date
Msg-id 20070206183218.GJ22166@alvh.no-ip.org
Whole thread Raw
In response to Re: Feature: POSIX Shared memory support  (Chris Marcellino <maps@levelview.com>)
Responses Re: Feature: POSIX Shared memory support  (Chris Marcellino <maps@levelview.com>)
List pgsql-patches
Chris Marcellino wrote:
> Tom, that is a definitely valid point and thanks for the feedback. I
> assume that the 'more modern' string segment naming gave the POSIX
> methods an edge in avoiding collision between other apps.
> As far as detecting a) whether anyone else is currently attached to
> that segment and b) whether an earlier existence of the current
> backend was still attached to a segment, I presumed that checking the
> pid's of the backend that owns the shared memory segment and checking
> the data directory (both which the SysV code already does) would
> suffice?

Is there an API call to list all PIDs that are connected to a particular
segment?

--
Alvaro Herrera                                http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support

pgsql-patches by date:

Previous
From: Chris Marcellino
Date:
Subject: Re: Feature: POSIX Shared memory support
Next
From: Chris Marcellino
Date:
Subject: Re: Feature: POSIX Shared memory support