Re: ECPG thread-safety

From: Philip Yarra <philip(at)utiba(dot)com>
To: Michael Meskes <meskes(at)postgresql(dot)org>
Cc: pgsql-interfaces(at)postgresql(dot)org, Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
Subject: Re: ECPG thread-safety
Date: 2003-04-22 04:05:33
Message-ID: 200304221405.33040.philip@utiba.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-interfaces pgsql-patches

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.

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Sean Chittenden 2003-04-22 04:24:40 Re: Bizarre 7.3.2 bug
Previous Message Philip Yarra 2003-04-22 04:02:16 Re: ECPG CVS version problems

Browse pgsql-interfaces by date

  From Date Subject
Next Message email lists 2003-04-22 09:34:11 Re: pl/python exceptions.ImportError: No module named _sre
Previous Message Philip Yarra 2003-04-22 04:02:16 Re: ECPG CVS version problems

Browse pgsql-patches by date

  From Date Subject
Next Message Neil Conway 2003-04-22 05:38:52 holdable cursor mop-up
Previous Message Philip Yarra 2003-04-22 04:02:16 Re: ECPG CVS version problems