Re: Threads - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Threads
Date
Msg-id 23763.1041644042@sss.pgh.pa.us
Whole thread Raw
In response to Re: Threads  ("Serguei Mokhov" <mokhov@cs.concordia.ca>)
Responses Re: Threads  (Greg Copeland <greg@CopelandConsulting.Net>)
List pgsql-hackers
"Serguei Mokhov" <mokhov@cs.concordia.ca> writes:
>>> (1) One thread screws up, the whole process dies. In a 
>>> multiple process application this is not too much of an issue.

> (1) is an issue only for user-level threads.

Uh, what other kind of thread have you got in mind here?

I suppose the lack-of-cross-thread-protection issue would go away if
our objective was only to use threads for internal parallelism in each
backend instance (ie, you still have one process per connection, but
internally it would use multiple threads to process subqueries in
parallel).

Of course that gives up the hope of faster connection startup that has
always been touted as a major reason to want Postgres to be threaded...
        regards, tom lane


pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: PostgreSQL Password Cracker
Next
From: Bruce Momjian
Date:
Subject: Re: Upgrading rant.