Re: Shared memory and processes

From: Michael Paquier <michael(dot)paquier(at)gmail(dot)com>
To: david(at)andl(dot)org
Cc: PostgreSQL mailing lists <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Shared memory and processes
Date: 2016-04-28 01:14:16
Message-ID: CAB7nPqQfLXgN2GYUSWrw0RPiE7HNb6nd1_E+T15m5bLpFc58rg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Thu, Apr 28, 2016 at 9:56 AM, <david(at)andl(dot)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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Alvaro Herrera 2016-04-28 01:38:46 Re: Fix for OpenSSL error queue bug
Previous Message David Rowley 2016-04-28 01:13:22 Re: EXPLAIN VERBOSE with parallel Aggregate