Re: [HACKERS] fork/exec for backend

Bruce Momjian <maillist@candle.pha.pa.us>

From: Bruce Momjian <maillist@candle.pha.pa.us>
To: goran@bildbasen.se (Goran Thyni)
Cc: hackers@postgreSQL.org
Date: 1998-01-24T20:45:48Z
Lists: pgsql-hackers
> 
> 
> I am still wondering why postmaster fork/exec instead of
> just forking when receiving a new connection.
> 
> Fork on modern unices (linux and (a think) *BSD) cost
> almost nothing (in time and memory) thanks to COW (copy-on-write).
> Exec in expensive as it breaks COW.
> 
> I know this is not the time (have too wait 'til after 6.3),
> but shouldn't this be on the ToDo-list.

It was on my personal TODO.  It is on the main one now:

	* remove fork()/exec() of backend and make it just fork()

I had hoped to do this fir 6.3 as it will save 0.01 seconds on startup,
but no luck.

-- 
Bruce Momjian
maillist@candle.pha.pa.us