Re: do we EXEC_BACKEND on Mac OS X?

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: do we EXEC_BACKEND on Mac OS X?
Дата
Msg-id 20121003161535.GB3470@momjian.us
обсуждение исходный текст
Ответ на do we EXEC_BACKEND on Mac OS X?  (Alvaro Herrera <alvherre@2ndquadrant.com>)
Список pgsql-hackers
On Wed, Oct 3, 2012 at 01:05:54PM -0300, Alvaro Herrera wrote:
> See the CAVEATS here:
>
> https://developer.apple.com/library/mac/#documentation/Darwin/Referenc
> e/ManPages/man2/fork.2.html
>
> Apparently fork() without exec() isn't all that well supported.
>
> Noticed while perusing http://lwn.net/Articles/518306/

I think this comment is more relevant:
Ah, OK, I found this
       https://developer.apple.com/library/mac/#documentation/Da...
       It seems that from 10.5 this caveat was added to the official OS       X documentation. In that light I think
it'ssafest to conclude       that Apple realised fork() is hard (check out the long list       of things a current
Linuxfork does to retain sanity in the       face of threads, asynchronous I/O, capabilities and other fun       toys
thatdidn't exist at the dawn of Unix) and decided they       don't care. It will probably work, but if it doesn't they
aren't      interested in explaining why/ fixing the problem.
 
       On balance I agree this makes OS X a pretty shoddy Unix, but       then, I would have been easily persuaded of
thatanyway.
 

I am hesitant to avoid fork() on OS/X until someone reports a problem; 
the slowdown would be significant, and I don't think we use enough OS/X
libraries to cause a problem for us, though Bonjour might be a problem.

Anyway, good you asked and we should be aware of possible problems.

--  Bruce Momjian  <bruce@momjian.us>        http://momjian.us EnterpriseDB
http://enterprisedb.com
 + It's impossible for everything to be true. +



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

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: Re: CREATE SCHEMA IF NOT EXISTS
Следующее
От: Boszormenyi Zoltan
Дата:
Сообщение: Re: [PATCH] Make pg_basebackup configure and start standby [Review]