Re: fork/exec

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: fork/exec
Дата
Msg-id 200311301547.hAUFlRX26284@candle.pha.pa.us
обсуждение исходный текст
Ответ на Re: fork/exec  (Claudio Natoli <claudio.natoli@memetrics.com>)
Список pgsql-hackers-win32
Claudio Natoli wrote:
> One slight circular problem with that. Currently, ShmemInitStruct waits on a
> lock (ShmemIndexLock), locks require the MyProc structure (set by
> InitProcess), and InitProcess needs access to... a bunch of shared memory
> structs :-)
>
> Would it be possible to re-jig ShmemInitStruct to not require locking (at
> least for backend initialization)? Other ideas?

At the time the postmaster is to populate that area, there is on one
else running, so you don't need locking, and the backends are going to
only be reading that area, so I don't think they need a lock.  Of
course, you might need to put all that stuff at the start of shared
memory so the backends know where to find it.

--
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073

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

Предыдущее
От: Claudio Natoli
Дата:
Сообщение: Re: fork/exec
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: fork/exec