Magnus Hagander <magnus@xxxxxxxxxxxx> writes: > Tom Lane wrote: >> Another problem is that postmaster children that do >> PGSharedMemoryDetach will still have valid inherited handles for >> the shmem segment --- does that factor into the behavior? It looks >> to me like the CloseHandle ought to be in PGSharedMemoryDetach. > Not as long as the processes die. If they die, their handles go with > them, and once the reference count goes to zero, the object goes away. But the syslogger process (and maybe others) is *not* supposed to die. regards, tom lane