Re: fork/exec - Mailing list pgsql-hackers-win32

From Claudio Natoli
Subject Re: fork/exec
Date
Msg-id A02DEC4D1073D611BAE8525405FCCE2B028054@harris.memetrics.local
Whole thread Raw
Responses Re: fork/exec  (Bruce Momjian <pgman@candle.pha.pa.us>)
List pgsql-hackers-win32

> Oh, good.  I couldn't remember if it was the postmaster or child that
> validates that key.  I now remember only the postmaster needs
> the secret because it sends the signal.  Not sure what random seed Claudio
was
> asking about.  Probably GUC's "seed" parameter --- Claudio, that is
> already covered in that GUC binary file I create that I
> mentioned in an earlier email.

Ah. I was only talking about the random "seed" insofar as it is one of a
number of things that are done inside BackendFork (ie. which currently occur
in between the fork call, and the call to PostgresMain).

Specifically, ISTM that, working on the assumption that the future exec call
will "replace" the existing call to PostgresMain, then in order to get the
fork/exec model in the best shape for porting to Win32 the code which
currently falls betweens fork/BackendFork + exec needs to be minimalized as
far as possible. It was this reasoning that prompted the second
point/question at the start of this thread...

Cheers,
Claudio




---
Certain disclaimers and policies apply to all email sent from Memetrics.
For the full text of these disclaimers and policies see
<a
href="http://www.memetrics.com/emailpolicy.html">http://www.memetrics.com/em
ailpolicy.html</a>

pgsql-hackers-win32 by date:

Previous
From: Claudio Natoli
Date:
Subject: Re: fork/exec
Next
From: Bruce Momjian
Date:
Subject: Re: fork/exec