Re: ECPG thread-safety - Mailing list pgsql-interfaces

From Philip Yarra
Subject Re: ECPG thread-safety
Date
Msg-id 200304221405.33040.philip@utiba.com
Whole thread Raw
In response to Re: ECPG thread-safety  (Philip Yarra <philip@utiba.com>)
List pgsql-interfaces
On Fri, 28 Mar 2003 17:49, Philip Yarra wrote:
> On Fri, 28 Mar 2003 13:00, you wrote:
> > I have put a mailbox file at:
> >
> >     ftp://candle.pha.pa.us/pub/postgresql/mypatches
> >
> > where there is a partial implementation of thread-safe ecpg.  Maybe you
> > can work with Michael to complete it.
>
> Okay, thanks for that. Have grabbed the file, and started reading. I'll
> also wait to hear from Michael or Lee before going too far on this.

I've had a few tries at testing the ECPG threadsafe patch, but so far no luck,
probably due to my own lack of experience. Can someone help me out with how
to test this?

So far I have:
- run configure
- applied Lee's patch to the source tree for 7.3.2
- edited src/Makefile.global, adding -pthread to CFLAGS and and -lpthread to
LIBS
- make and make install
- make our own pthread'd app, linking against newly installed pgsql
Then when I run our app with 3 DB threads, I can watch 2 of the threads fail
to return from EXEC SQL, which is exactly the same behaviour we used to get.

Can anyone point me in the right direction? I'm building on RedHat Linux 7.3
on Intel, using all standard tools for that version (except updated bison
from 1.35 to 1.875). So gcc 2.96, gmake 3.79.1, etc. Let me know if more
details are required.

Regards, Philip Yarra.



pgsql-interfaces by date:

Previous
From: Philip Yarra
Date:
Subject: Re: ECPG CVS version problems
Next
From: email lists
Date:
Subject: Re: pl/python exceptions.ImportError: No module named _sre