From: "Bruce Momjian" <[EMAIL PROTECTED]> > Lee Kindness wrote: > > Perhaps a cleaner way is to use an existing thread package with encompasses > > the various platform APIs - i.e. APR or ACE, or... But that's a big > > discussion, and not one I'm keen to get into at the moment. A more > > appropriate time is perhaps once the WIN32 port is completed? It would also > > be straightforward to encompass this in an PostgreSQL specific API to wrap > > around the various calls we use and, if available, make these no-ops when a > > suitable storage class is supplied by the compiler? I'd be happy to write > > this API if others saw it as a way forward. > > > I don't think MinGW support thread-specific right now (no TLS support), > so we will need native Win32 in there anyway. Adding a third seems like > more confusion.
Ah, ok - i've not been following the win32 stuff so wasn't even sure on compilers being used. I'd agree at this stage there's no point muddying the waters even further! I'll get back to you with the patch to move common-case connection retrieval outwith the mutex once the earlier patches are applied. Thanks, L. ---------------------------(end of broadcast)--------------------------- TIP 4: Don't 'kill -9' the postmaster