Re: ECPG - Specifying connections, TSD, sqlca.

Поиск
Список
Период
Сортировка
От Lee Kindness
Тема Re: ECPG - Specifying connections, TSD, sqlca.
Дата
Msg-id 000701c40625$cf173de0$678be150@coulter
обсуждение исходный текст
Ответ на Re: ECPG - Specifying connections, TSD, sqlca.  (Bruce Momjian <pgman@candle.pha.pa.us>)
Список 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 по дате отправления:

Предыдущее
От: "Kyoung Hwa Kim"
Дата:
Сообщение: The problem of making new system catalog
Следующее
От: Tom Lane
Дата:
Сообщение: Re: PITR Functional Design v2 for 7.5