Hiroshi Inoue wrote:
>
> Where do we attach to shmem after fork() ?
> I couldn't find the place.
Ops, sorry, you're right - postinit.c:InitCommunication():
if (!IsUnderPostmaster) /* postmaster already did this */ { PostgresIpcKey = key;
AttachSharedMemoryAndSemaphores(key); }
Though, AttachSharedMemoryAndSemaphores():
if (key == PrivateIPCKey) { CreateSharedMemoryAndSemaphores(key, 16); return; }
... and useless shmem attachment stuff follows after this ...
Cleanup is still required, but subj is closed, thanks -:)
Vadim