Re: What happens if I create new threads from within a postgresql function?

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: What happens if I create new threads from within a postgresql function?
Дата
Msg-id 20130218150258.GK12029@momjian.us
обсуждение исходный текст
Ответ на Re: What happens if I create new threads from within a postgresql function?  (Seref Arikan <serefarikan@kurumsalteknoloji.com>)
Ответы Re: What happens if I create new threads from within a postgresql function?  (Seref Arikan <serefarikan@kurumsalteknoloji.com>)
Список pgsql-general
On Mon, Feb 18, 2013 at 02:51:13PM +0000, Seref Arikan wrote:
> Thanks Bruce,
> I too think that it should be fine, as long as I make sure that the spawned
> threads do not call back to originating thread and they are properly terminated
> once they're finished etc.
> Various messages I've seen in the list archives seem to mention that spawning
> threads is a bad idea, etc etc. I just could not find a technical discussion of
> why this is a bad idea. Maybe I have failed to generate the correct search
> terms.
> It would be great to know why and when this would be a dangerous thing  to do.

The problem comes with calling Postgres subsystems from multiple
threads, which it doesn't sound like you are doing.

--
  Bruce Momjian  <bruce@momjian.us>        http://momjian.us
  EnterpriseDB                             http://enterprisedb.com

  + It's impossible for everything to be true. +

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

Предыдущее
От: Seref Arikan
Дата:
Сообщение: Re: What happens if I create new threads from within a postgresql function?
Следующее
От: Seref Arikan
Дата:
Сообщение: Re: What happens if I create new threads from within a postgresql function?