Re: fork/exec

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: fork/exec
Дата
Msg-id 200311281941.hASJfKr10545@candle.pha.pa.us
обсуждение исходный текст
Ответ на Re: fork/exec  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: fork/exec  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers-win32
Tom Lane wrote:
> Claudio Natoli <claudio.natoli@memetrics.com> writes:
> > * I see you are passing the values of things like UsedShmemSegID,
> > UsedShmemSegAddr etc on the command line. Was your intention to pass other
> > shared mem addresses like FreeSpaceMap, LWLockArray in this way too, or did
> > you intend to register these addresses within another section of shared
> > memory, or some other idea (FWIW, I've got a cygwin version fork/exec'ing
> > the backends using the former method).
>
> Cluttering the backend command line with intra-shmem addresses is messy
> and unnecessary.  The shmem index map (see ShmemInitStruct) was designed
> to allow backends to discover this stuff for themselves, and we should
> resurrect that function.

Agreed.  We have to pass the shared memory address, but the rest should
be registered in shared memory somewhere and we can initialize those
values.  The old code used to point _using_ those memory pointers, but I
don't think that is necessary --- in fork/exec mode, we can just use
share memory to initialize the pointers properly.

--
  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 по дате отправления:

Предыдущее
От: "Joshua D. Drake"
Дата:
Сообщение: pg_ctl
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: fork/exec