>
> Bruce Momjian <maillist@candle.pha.pa.us> writes:
>
> > I am testing a patch for removing exec() and using just fork(). I will
> > post it to the hackers list for review, if that is OK. Should be only a
> > few hundred lines.
>
> To do what exactly?
>
> --Michael
>
[FYI for others on the list.]
Currently, a backend is created by forking the postmaster, then exec'ing
an identical binary to run the backend. This change makes it just
fork(), but not exec() a new identical binary.
Why it was originally done this way, I don't know. It was not trivial
to change it. It saves 0.01 seconds on backend startup with single
query, which usually takes 0.08 seconds, so the 0.01 seconds is
significant.
--
Bruce Momjian | 830 Blythe Avenue
maillist@candle.pha.pa.us | Drexel Hill, Pennsylvania 19026
+ If your life is a hard drive, | (610) 353-9879(w)
+ Christ can be your backup. | (610) 853-3000(h)