pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Philip Yarra <philip@utiba.com>
To: Michael Meskes <meskes@postgresql.org>
Cc: pgsql-interfaces@postgresql.org, Bruce Momjian <pgman@candle.pha.pa.us>
Subject: Re: ECPG thread-safety
Date: Tue, 22 Apr 2003 14:05:33 +1000
Message-ID: <200304221405.33040.philip@utiba.com> (raw)
In-Reply-To: <200303281749.04746.philip@utiba.com>
References: <200303280200.h2S20N218363@candle.pha.pa.us>
	<200303281749.04746.philip@utiba.com>

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.




view thread (35+ messages)  latest in thread

Message-ID: <200304221405.33040.philip@utiba.com>
Permalink:  ../200304221405.33040.philip@utiba.com/
Also on:    postgresql.org/message-id/200304221405.33040.philip@utiba.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-interfaces@postgresql.org
  Cc: philip@utiba.com, meskes@postgresql.org, pgman@candle.pha.pa.us
  Subject: Re: ECPG thread-safety
  In-Reply-To: <200304221405.33040.philip@utiba.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox