Re: Roadmap for a Win32 port - Mailing list pgsql-hackers

From Bruce Momjian
Subject Re: Roadmap for a Win32 port
Date
Msg-id 200206180127.g5I1R2w12116@candle.pha.pa.us
Whole thread Raw
In response to Re: Roadmap for a Win32 port  ("Dann Corbit" <DCorbit@connx.com>)
List pgsql-hackers
Dann Corbit wrote:
> > Can't.  postmaster/postgres are symlinks to the same file, 
> > and we fork()
> > from postmaster to create backends.  All the code has to be in the
> > postmaster so the fork works.
> 
> Is fork() faster than creation of a new process via exec()?  After the
> creation of the shared memory, the information needed to use it could be
> passed to the Postgres servers on the command line.
> 
> The startup stuff for PostgreSQL is just a few files.  It does not seem
> insurmountable to change it.  But it is none of my business.  If it is a
> major hassle (for reasons which I am not aware) then I see no driving
> reason to change it.

We used to fork() and exec(), but that was slow.  Now we preload stuff
in the postmaster for each backend.  It is faster.

--  Bruce Momjian                        |  http://candle.pha.pa.us pgman@candle.pha.pa.us               |  (610)
853-3000+  If your life is a hard drive,     |  830 Blythe Avenue +  Christ can be your backup.        |  Drexel Hill,
Pennsylvania19026
 


pgsql-hackers by date:

Previous
From: "Dann Corbit"
Date:
Subject: Re: Roadmap for a Win32 port
Next
From: "Christopher Kings-Lynne"
Date:
Subject: Re: Massive regression failures