Re: Multithread Query Planner

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Multithread Query Planner
Дата
Msg-id 6870.1327422359@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Multithread Query Planner  (Robert Haas <robertmhaas@gmail.com>)
Ответы Re: Multithread Query Planner  (Robert Haas <robertmhaas@gmail.com>)
Список pgsql-hackers
Robert Haas <robertmhaas@gmail.com> writes:
> I doubt it.  Almost nothing in the backend is thread-safe.  You can't
> acquire a heavyweight lock, a lightweight lock, or a spinlock. You
> can't do anything that might elog() or ereport().  None of those
> things are reentrant.

Not to mention palloc, another extremely fundamental and non-reentrant
subsystem.

Possibly we could work on making all that stuff re-entrant, but it would
be a huge amount of work for a distant and uncertain payoff.
        regards, tom lane


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

Предыдущее
От: Jaime Casanova
Дата:
Сообщение: Re: Measuring relation free space
Следующее
От: Robert Haas
Дата:
Сообщение: Re: Multithread Query Planner