Re: Fwd: 8.0 Beta3 worked, RC1 didn't!

Поиск
Список
Период
Сортировка
От Gary Doades
Тема Re: Fwd: 8.0 Beta3 worked, RC1 didn't!
Дата
Msg-id 41CC40A2.5020201@gpdnet.co.uk
обсуждение исходный текст
Ответ на Re: Fwd: 8.0 Beta3 worked, RC1 didn't!  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Fwd: 8.0 Beta3 worked, RC1 didn't!  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers-win32
Tom Lane wrote:
> Gary Doades <gpd@gpdnet.co.uk> writes:
>
>>AFAIK Win32 does not care where in private process address space the
>>"shared memory" segment is. It can be mapped to different addresses in
>>different processes and still share the same physical address space.
>>This is why Win32 puts the private shared address anywhere in its own
>>address space, because it doesn't matter.
>
>
> Win32 may not care, but we do.  The shared memory segment must be mapped
> at the same address in every backend.

Forgive me for not knowing the internals of postgres, but why? As long
as all the shared memory is accessed from the same relative offsets from
the private starting address it will refer to the same physical shared
memory address and should work.

Is this to maintain compatibility with the other platforms way of doing
things, or the postgres internal architecture?

If this is the case then your suggestion may be the only one, to
artificially bump up the first free address and hope that it is enough.
Seems a bit hit and miss though (probably more hit than miss) since it's
not easily known what the extra allocation for the subsequent backends
may be.

>>If you try to force it to any particular private process address you may
>>fail as you don't always know where program code (DLLs etc.) may be loaded.
>
>
> This is (or ought to be) irrelevant, because we are only talking about
> instances of a single executable.
>
Agreed, as long as you can't have code dynamically linked from one
backend, but not another.

Cheers,
Gary.

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Fwd: 8.0 Beta3 worked, RC1 didn't!
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Fwd: 8.0 Beta3 worked, RC1 didn't!