Help needed in using 'on_dsm_detach' callback
От | Gaddam Sai Ram |
---|---|
Тема | Help needed in using 'on_dsm_detach' callback |
Дата | |
Msg-id | 16127197919.10f81dae25294.1575119220821003425@zohocorp.com обсуждение исходный текст |
Ответы |
Re: Help needed in using 'on_dsm_detach' callback
|
Список | pgsql-hackers |
Hello people, We are trying to build an in-memory index in postgres using dsa. Here is how we implemented dsa part.
Problem here is, on DSA Detach, i would like to reset PROC_DSA_AREA variable to NULL. Otherwise subsequent DSA calls tries to use the same pointer and may end up into Segmentation Faults. How could i do that? Found that there is a callback for dsa detach but that function requires segment pointer as an argument, Should be as below:
But i couldn't access that segment, as DSA_AREA struct is defined in dsa.c, so I am unable to include. Any other ways to get dsa detach event, or to access DSA Segment pointer? Got stuck here.. kindly help me to proceed further. |
Thank you,
G. Sai Ram
В списке pgsql-hackers по дате отправления: