Re: [HACKERS] why do shmem attach?

Поиск
Список
Период
Сортировка
От Vadim Mikheev
Тема Re: [HACKERS] why do shmem attach?
Дата
Msg-id 37E5DAFB.18D54027@krs.ru
обсуждение исходный текст
Ответ на RE: [HACKERS] why do shmem attach?  ("Hiroshi Inoue" <Inoue@tpf.co.jp>)
Ответы Re: [HACKERS] why do shmem attach?  (Bruce Momjian <maillist@candle.pha.pa.us>)
Re: [HACKERS] why do shmem attach?  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
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


В списке pgsql-hackers по дате отправления:

Предыдущее
От: "Hiroshi Inoue"
Дата:
Сообщение: RE: [HACKERS] why do shmem attach?
Следующее
От: Theo Kramer
Дата:
Сообщение: Re: [HACKERS] Re: HISTORY for 6.5.2