Re: Question about Threads

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Leon Oosterwijk <leon(at)isdn(dot)net>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Question about Threads
Date: 2003-11-09 01:58:09
Message-ID: 200311090158.hA91w9028177@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2003-11-09 02:02:46 Re: Call for port reports
Previous Message Joe Conway 2003-11-09 01:56:35 Re: [HACKERS] postgresql-7.4RC1 - unrecognized privilege type