---------- Forwarded message --------- 보낸사람: Sungwoo Chang <swchang...@gmail.com> Date: 2025년 6월 13일 (금) 오전 8:03 Subject: Re: dsm_registry: Add detach and destroy features To: Nathan Bossart <nathandboss...@gmail.com>
> One of the reasons I avoided adding detach/destroy functionality originally > is because this seems difficult to do correctly. How would an extension > ensure that it doesn't end up with one set of backends attached to a new > segment and another attached to an old one that is pending deletion? Sorry for the late response. I used this patch for my extension in a way that you should always detach after you are done using the shmem segment. So the situation you described would happen in a brief moment, but once the extension finishes its task, the shmem segment will be destroyed naturally as all processes detach from it. Would this not be applicable in other extensions?