Re: ECPG - Specifying connections, TSD, sqlca.

From: "Lee Kindness" <lkindness(at)csl(dot)co(dot)uk>
To: "Bruce Momjian" <pgman(at)candle(dot)pha(dot)pa(dot)us>
Cc: "Shridhar Daithankar" <shridhar(at)frodo(dot)hserus(dot)net>, <pgsql-hackers(at)postgresql(dot)org>, "Lee Kindness" <lkindness(at)csl(dot)co(dot)uk>
Subject: Re: ECPG - Specifying connections, TSD, sqlca.
Date: 2004-03-09 22:28:09
Message-ID: 000701c40625$cf173de0$678be150@coulter
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-patches

From: "Bruce Momjian" <pgman(at)candle(dot)pha(dot)pa(dot)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.

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Andrew Dunstan 2004-03-09 22:29:39 Re: cvs breakage
Previous Message Tatsuo Ishii 2004-03-09 22:17:16 Re: [PATCHES] NO WAIT ...

Browse pgsql-patches by date

  From Date Subject
Next Message Bruce Momjian 2004-03-09 23:46:55 Re: PSQLRC environment variable.
Previous Message Tatsuo Ishii 2004-03-09 22:17:16 Re: [PATCHES] NO WAIT ...