shared memory allocation - C function

From: Alan Nilsson <anilsson(at)apple(dot)com>
To: "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: shared memory allocation - C function
Date: 2014-04-16 23:04:16
Message-ID: 4CBFF0C7-9B8D-401E-AAB3-F81515233526@apple.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Is it possible to allocate a small chunk of shared memory outside of any pools(i.e. manually alloced & de-alloced) that is visible to all processes? I would like a small amount to store a mutex and a condition variable that is accessible in a c function from any process. Is there an SPI/API to do this?

alan

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Susan Cassidy 2014-04-16 23:27:13 any way for a transaction to "see" inserts done earlier in the transaction?
Previous Message Andy Colson 2014-04-16 21:15:00 Re: hot standby data folder bigger than primary