fork/exec for backend - Mailing list pgsql-hackers

From Goran Thyni
Subject fork/exec for backend
Date
Msg-id 19980124192427.8004.qmail@guevara.bildbasen.se
Whole thread Raw
Responses Re: [HACKERS] fork/exec for backend  (Bruce Momjian <maillist@candle.pha.pa.us>)
Re: [HACKERS] fork/exec for backend  (Tom <tom@sdf.com>)
List 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.

    best regards,
--
---------------------------------------------
G�ran Thyni, sysadm, JMS Bildbasen, Kiruna


pgsql-hackers by date:

Previous
From: Maarten Boekhold
Date:
Subject: Re: Copyright question: GPL patches for non-GPL packages (fwd)
Next
From: Bruce Momjian
Date:
Subject: Re: [HACKERS] Grant/Revoke problems