Hello Thomas,
Thank you for your suggestions, needless to say it helped a lot. As
you suggested, I have created an initial dsm segment and used it create dsa
area as well as to detach dsm. Thus, it helped me in using 'on_dsm_detach'
callback. I have tested the code and it work
On Wed, Jan 24, 2018 at 8:37 PM, Gaddam Sai Ram
wrote:
> Found that there is a callback for dsa detach but that function requires
> segment pointer as an argument, Should be as below:
>
> on_dsm_detach(PROC_DSA_AREA->segment_maps[0].segment, detach_func);
> ...
> But i couldn't access that segment
Hello people,
We are trying to build an in-memory index in postgres using
dsa.
Here is how we implemented dsa part.
We have PROC_DSA_AREA global variable(Process specific DSA Pointer)
We have a piece of traditional postgres shared memory to store dsa_handle
Each process t