Re: [HACKERS] removing the exec() from doexec()

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-hackers(at)hub(dot)org
Subject: Re: [HACKERS] removing the exec() from doexec()
Date: 1998-04-30 14:59:50
Message-ID: 12284.893948390@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Bruce Momjian <maillist(at)candle(dot)pha(dot)pa(dot)us> writes:
> This exec() takes 15% of our startup time. I have wanted it removed for
> many releases now.

Don't forget that you will have to use a real fork() rather than
vfork(). Some of the apparent savings will not materialize.

I agree, though, that using exec() to reinvoke the same binary is
pretty silly, especially when you don't want exec's normal side-effects
of detaching shared mem etc. And being able to rip out the dependency
on whether vfork() exists would be nice.

regards, tom lane

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 1998-04-30 15:16:45 Re: [HACKERS] Revised proposal for libpq and FE/BE protocol changes
Previous Message The Hermit Hacker 1998-04-30 14:54:41 Re: [INTERFACES] Access'97 and ODBC