Re: ECPG - Specifying connections, TSD, sqlca. - Mailing list pgsql-hackers

From Lee Kindness
Subject Re: ECPG - Specifying connections, TSD, sqlca.
Date
Msg-id 000701c40625$cf173de0$678be150@coulter
Whole thread Raw
In response to Re: ECPG - Specifying connections, TSD, sqlca.  (Bruce Momjian <pgman@candle.pha.pa.us>)
List pgsql-hackers
From: "Bruce Momjian" <pgman@candle.pha.pa.us>
> 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.



pgsql-hackers by date:

Previous
From: "Kyoung Hwa Kim"
Date:
Subject: The problem of making new system catalog
Next
From: Tom Lane
Date:
Subject: Re: PITR Functional Design v2 for 7.5