Re: [HACKERS] fork/exec for backend

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: [HACKERS] fork/exec for backend
Дата
Msg-id 199801242045.PAA07890@candle.pha.pa.us
обсуждение исходный текст
Ответ на fork/exec for backend  (Goran Thyni <goran@bildbasen.se>)
Список 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.

It was on my personal TODO.  It is on the main one now:

    * remove fork()/exec() of backend and make it just fork()

I had hoped to do this fir 6.3 as it will save 0.01 seconds on startup,
but no luck.

--
Bruce Momjian
maillist@candle.pha.pa.us

В списке pgsql-hackers по дате отправления:

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: [HACKERS] Grant/Revoke problems
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: [HACKERS] Re: Browsing the tables and why pgsql does not perform well