Re: Threads vs Processes - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Threads vs Processes
Date
Msg-id 16617.1064593629@sss.pgh.pa.us
Whole thread Raw
In response to Re: Threads vs Processes  (Bruce Momjian <pgman@candle.pha.pa.us>)
Responses Re: Threads vs Processes  (Bruce Momjian <pgman@candle.pha.pa.us>)
List pgsql-hackers
Bruce Momjian <pgman@candle.pha.pa.us> writes:
> One solution is for me to continue with this in the Win32 CVS version
> until I have fork/exec() working on Unix, then test on Win32.  I think
> that could be done in a few weeks, if not less.

> Another solution, already mentioned, is to use threads and TLS.  This is
> what SRA's code uses.  I know SRA wants to contribute that code back to
> the community, so I can ask them to see if they are ready to release it.

If you are willing to expend the effort, I think it would be worth the
time to pursue both approaches.  We don't yet have enough info to decide
which one will be cleaner, so we need to push forward on both until we
can make a realistic comparison.

            regards, tom lane

pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: pg_dump and REVOKE on function
Next
From: Bruce Momjian
Date:
Subject: Re: Threads vs Processes