From: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
---|---|
To: | Dann Corbit <DCorbit(at)connx(dot)com> |
Cc: | Jan Wieck <JanWieck(at)Yahoo(dot)com>, Peter Eisentraut <peter_e(at)gmx(dot)net>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: Roadmap for a Win32 port |
Date: | 2002-06-18 01:27:02 |
Message-ID: | 200206180127.g5I1R2w12116@candle.pha.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | 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(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026
From | Date | Subject | |
---|---|---|---|
Next Message | Christopher Kings-Lynne | 2002-06-18 02:29:42 | Re: Massive regression failures |
Previous Message | Dann Corbit | 2002-06-18 01:25:48 | Re: Roadmap for a Win32 port |