Re: PostmasterContext survives into parallel workers!?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: PostmasterContext survives into parallel workers!?
Дата
Msg-id 22056.1470094948@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: PostmasterContext survives into parallel workers!?  (Thomas Munro <thomas.munro@enterprisedb.com>)
Ответы Re: PostmasterContext survives into parallel workers!?  (Robert Haas <robertmhaas@gmail.com>)
Список pgsql-hackers
Thomas Munro <thomas.munro@enterprisedb.com> writes:
> I found this apparently unresolved bug report about glibc fork()
> inside a signal handler deadlocking:
> https://sourceware.org/bugzilla/show_bug.cgi?id=4737

> I wonder if that could bite postmaster.

I seriously doubt it.  The key thing about the postmaster is that
it runs with signals blocked practically everywhere.  So we're not
taking risks of a signal handler interrupting, say, malloc()
(which seemed to be the core of at least the first example given
in that report).  This is what makes me dubious that getting rid
of doing work in the postmaster's signal handlers is really going
to add any noticeable increment of safety.  It might make the
code look cleaner, but I'm afraid it's going to be a lot of churn
for not much gain.
        regards, tom lane



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

Предыдущее
От: Andres Freund
Дата:
Сообщение: Re: PostmasterContext survives into parallel workers!?
Следующее
От: Karan Sikka
Дата:
Сообщение: Re: TODO item: Implement Boyer-Moore searching in LIKE queries