Re: [HACKERS] Shared memory and processes

2016-04-27 Thread Michael Paquier
On Thu, Apr 28, 2016 at 12:24 PM, wrote: >> From: Michael Paquier [mailto:michael.paqu...@gmail.com] >> 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. > > Yes, that is useful. I'm

Re: [HACKERS] Shared memory and processes

2016-04-27 Thread david
> From: Michael Paquier [mailto:michael.paqu...@gmail.com] > > 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 th

Re: [HACKERS] Shared memory and processes

2016-04-27 Thread david
> From: Thomas Munro [mailto:thomas.mu...@enterprisedb.com] > > Does Postgres provide a convenient way for one process to pass data to > > another using shared memory? > > 1. Look at ShmemInitStruct, ShmemInitHash (as in hash table), ShmemInitQueue > in storage/shmem.h. These use memory that is

Re: [HACKERS] Shared memory and processes

2016-04-27 Thread Michael Paquier
On Thu, Apr 28, 2016 at 9:56 AM, 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 t

Re: [HACKERS] Shared memory and processes

2016-04-27 Thread Thomas Munro
On Thu, Apr 28, 2016 at 12:56 PM, wrote: > Does Postgres provide a convenient way for one process to pass data to > another using shared memory? 1. Look at ShmemInitStruct, ShmemInitHash (as in hash table), ShmemInitQueue in storage/shmem.h. These use memory that is mapped at the same address

[HACKERS] Shared memory and processes

2016-04-27 Thread david
Does Postgres provide a convenient way for one process to pass data to another using shared memory? Regards David M Bennett FACS _ Andl - A New Database Language - andl.org