From: | Bruce Momjian <maillist(at)candle(dot)pha(dot)pa(dot)us> |
---|---|
To: | explorer(at)flame(dot)org (Michael Graff) |
Cc: | hackers(at)postgreSQL(dot)org (PostgreSQL-development) |
Subject: | Re: [HACKERS] removal of exec() |
Date: | 1998-05-28 04:27:16 |
Message-ID: | 199805280427.AAA16776@candle.pha.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
>
> Bruce Momjian <maillist(at)candle(dot)pha(dot)pa(dot)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(at)candle(dot)pha(dot)pa(dot)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)
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Ivar Helbekkmo | 1998-05-28 05:32:08 | Re: [GENERAL] delete columm help |
Previous Message | Bruce Momjian | 1998-05-28 00:41:25 | removal of exec() |