From: | Lee Kindness <lkindness(at)csl(dot)co(dot)uk> |
---|---|
To: | Michael Meskes <meskes(at)postgresql(dot)org> |
Cc: | Lee Kindness <lkindness(at)csl(dot)co(dot)uk>, pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: ECPG, threading and pooling |
Date: | 2003-01-27 14:06:26 |
Message-ID: | 15925.15586.604809.786275@kelvin.csl.co.uk |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers pgsql-patches |
Michael Meskes writes:
> On Mon, Jan 27, 2003 at 11:52:18AM +0000, Lee Kindness wrote:
> > I've spent a bit of time on making ecpg thread safe over Christmas,
> > while it's not finished i'm sure the attached patch is at least useful
> > and a step in the right direction.
> Thanks a lot. I have no experience in multithreaded software development
> so I cannot completely check your patch but it surely looks good. Shall
> I commit it, or will you? I think we should get it into CVS for all to
> test.
Problem with it is it needs some changes to configure.in (and
associated files) for it to be worthwhile. Checks would need to be
added to determine is threads are supported on the build platform and
the needed compile and link flags. I'm trying to get this together for
libpq too.
> Just two questions:
> - Is it neccessary to patch c.h for ecpg?
No, but each ecpg source file would need something like:
#ifdef HAVE_PTHREAD_H
# include <pthread.h>
# include <errno.h>
#endif
It's in c.h just now for ease of testing.
> - Not sure with the version numbering but I can fix that later.
As discussed on pgsql-hackers after the 7.3 release any "binary
incompatible" library change needs a major version number increase.
Lee.
From | Date | Subject | |
---|---|---|---|
Next Message | Shridhar Daithankar | 2003-01-27 14:09:41 | Re: ECPG, threading and pooling |
Previous Message | Michiel Lange | 2003-01-27 13:19:36 | Re: Cannot connect to the database (PG 7.3) |
From | Date | Subject | |
---|---|---|---|
Next Message | Shridhar Daithankar | 2003-01-27 14:09:41 | Re: ECPG, threading and pooling |
Previous Message | Michael Meskes | 2003-01-27 12:28:42 | Re: ECPG, threading and pooling |