Re: [PATCHES] fork/exec patch

From: "Merlin Moncure" <merlin(dot)moncure(at)rcsonline(dot)com>
To: "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: "PostgreSQL Win32 port list" <pgsql-hackers-win32(at)postgresql(dot)org>
Subject: Re: [PATCHES] fork/exec patch
Date: 2003-12-15 21:28:34
Message-ID: 303E00EBDD07B943924382E153890E5434AA25@cuthbert.rcsinc.local
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers-win32

Tom Lane wrote:
> The postmaster's dependence on the contents of shared memory should
> ideally be zero (and it is zero, or nearly so, at the moment).
> Otherwise a backend crash that clobbers shared memory poses the risk
of
> taking down the postmaster as well. We can't go in that direction.

Just a thought: win32 memory mapped files can be designated read only at
the time of the 'mapping'. This would guarantee the memory in question
would not be clobbered by anybody but the postmaster. Also, the MMF for
the data in question could be kept separate from the general pool by
giving it a separate filename. This is a fairly elegant approach from
win32 point of view. Not sure if you are trying to carry this to the
unix side, which of course would make this moot.

Regards,
Merlin

Browse pgsql-hackers-win32 by date

  From Date Subject
Next Message Merlin Moncure 2003-12-15 21:55:11 Re: [HACKERS] [PATCHES] fork/exec patch
Previous Message Bruce Momjian 2003-12-15 21:21:07 Re: [HACKERS] [PATCHES] fork/exec patch