Re: Shared memory and processes - Mailing list pgsql-hackers

From Michael Paquier
Subject Re: Shared memory and processes
Date
Msg-id CAB7nPqQfLXgN2GYUSWrw0RPiE7HNb6nd1_E+T15m5bLpFc58rg@mail.gmail.com
Whole thread Raw
In response to Shared memory and processes  (<david@andl.org>)
Responses Re: Shared memory and processes  (<david@andl.org>)
List pgsql-hackers
On Thu, Apr 28, 2016 at 9:56 AM,  <david@andl.org> wrote:
> Does Postgres provide a convenient way for one process to pass data to
> another using shared memory?

If you are talking about enabling the use of shared memory by 3rd-part
plugins or modules, there is shmem_startup_hook for this purpose.
Another thing that you may want to look at is DSM (dynamic shared
memory), with its interface in dsm.h. An example of use is in
src/test/modules/test_shm_mq.
-- 
Michael



pgsql-hackers by date:

Previous
From: David Rowley
Date:
Subject: Re: EXPLAIN VERBOSE with parallel Aggregate
Next
From: Alvaro Herrera
Date:
Subject: Re: Fix for OpenSSL error queue bug