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