ECPG SET CONNECTION

Поиск
Список
Период
Сортировка
Искать

ECPG SET CONNECTION

От:
Leif Jensen <leif@crysberg.dk>
Дата:
   Hi guys.

   In the ECPG manual (including latest 9.1.9) about ECPG SQL SET CONNECTION ; it is stated that "This is not thread-aware".

   When looking in the ecpg library code connect.c for ECPGsetconn( ... ), it looks very much like it is thread-aware if translated with the --enable-thread-safety option.

   What should I believe ?

 Leif

Re: ECPG SET CONNECTION

От:
Bruce Momjian <bruce@momjian.us>
Дата:
On Fri, May 31, 2013 at 02:26:08PM +0200, Leif Jensen wrote:
>    Hi guys.
> 
>    In the ECPG manual (including latest 9.1.9) about ECPG SQL SET CONNECTION ; it is stated that "This is not thread-aware".
> 
>    When looking in the ecpg library code connect.c for ECPGsetconn( ... ), it looks very much like it is thread-aware if translated with the --enable-thread-safety option.
> 
>    What should I believe ?

Can someone comment on this report from 2013?

-- 
  Bruce Momjian          http://momjian.us
  EnterpriseDB                             http://enterprisedb.com

  + Everyone has their own god. +

Re: ECPG SET CONNECTION

От:
Michael Meskes <meskes@postgresql.org>
Дата:
On 14.05.2015 19:35, Bruce Momjian wrote:
> On Fri, May 31, 2013 at 02:26:08PM +0200, Leif Jensen wrote:
>>    Hi guys.
>>
>>    In the ECPG manual (including latest 9.1.9) about ECPG SQL SET CONNECTION ; it is stated that "This is not thread-aware".
>>
>>    When looking in the ecpg library code connect.c for ECPGsetconn( ... ), it looks very much like it is thread-aware if translated with the --enable-thread-safety option.
>>
>>    What should I believe ?
> 
> Can someone comment on this report from 2013?

Sorry, it seems I missed this email. Yes, the code should be
thread-aware, at least I don't know of any problems with it. It appears
to me that the docs haven't been updated by the patch that made ecpg
work with threads back in the day.

Michael
-- 
Michael Meskes
Michael at Fam-Meskes dot De, Michael at Meskes dot (De|Com|Net|Org)
Meskes at (Debian|Postgresql) dot Org
Jabber: michael.meskes at gmail dot com
VfL Borussia! Força Barça! Go SF 49ers! Use Debian GNU/Linux, PostgreSQL

Re: ECPG SET CONNECTION

От:
Bruce Momjian <bruce@momjian.us>
Дата:
On Fri, May 15, 2015 at 01:10:27PM +0200, Michael Meskes wrote:
> On 14.05.2015 19:35, Bruce Momjian wrote:
> > On Fri, May 31, 2013 at 02:26:08PM +0200, Leif Jensen wrote:
> >>    Hi guys.
> >>
> >>    In the ECPG manual (including latest 9.1.9) about ECPG SQL SET CONNECTION ; it is stated that "This is not thread-aware".
> >>
> >>    When looking in the ecpg library code connect.c for ECPGsetconn( ... ), it looks very much like it is thread-aware if translated with the --enable-thread-safety option.
> >>
> >>    What should I believe ?
> > 
> > Can someone comment on this report from 2013?
> 
> Sorry, it seems I missed this email. Yes, the code should be
> thread-aware, at least I don't know of any problems with it. It appears
> to me that the docs haven't been updated by the patch that made ecpg
> work with threads back in the day.

Thanks.  Is that the only doc line that needs adjustment?

-- 
  Bruce Momjian          http://momjian.us
  EnterpriseDB                             http://enterprisedb.com

  + Everyone has their own god. +

FAQ