Re: Question about Threads

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: Question about Threads
Дата
Msg-id 200311090158.hA91w9028177@candle.pha.pa.us
обсуждение исходный текст
Ответ на Question about Threads  ("Leon Oosterwijk" <leon@isdn.net>)
Список pgsql-hackers
Leon Oosterwijk wrote:
> All, 
> 
> I'm working on a school project that involves genetic algorithms. We thought
> it would be neat to parralelize the genetic algorithm in postgresql's query
> optimiser. We used pthreads and are able to spawn threads to deal with the
> query optimization, however on exit of the thread the postmaster blows up.
> Before we get into details is there any obvious reason postgres doesn't like
> to deal with threads? 

Yes, the backend code is not thread-safe.

--  Bruce Momjian                        |  http://candle.pha.pa.us pgman@candle.pha.pa.us               |  (610)
359-1001+  If your life is a hard drive,     |  13 Roberts Road +  Christ can be your backup.        |  Newtown Square,
Pennsylvania19073
 


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

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: Question for the developers.
Следующее
От: Joe Conway
Дата:
Сообщение: Re: [BUGS] postgresql-7.4RC1 - unrecognized privilege type