Re: [HACKERS] ECPG, threading and pooling

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Lee Kindness <lkindness(at)csl(dot)co(dot)uk>
Cc: Michael Meskes <meskes(at)postgresql(dot)org>, "Shridhar Daithankar<shridhar_daithankar(at)persistent(dot)co(dot)in>" <shridhar_daithankar(at)persistent(dot)co(dot)in>, PostgreSQL-patches <pgsql-patches(at)postgresql(dot)org>
Subject: Re: [HACKERS] ECPG, threading and pooling
Date: 2003-06-15 04:07:12
Message-ID: 200306150407.h5F47CY27920@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-patches


Patch applied. I made adjustments to use the new configure thread
settings, and I added documentation. I also updated the interface
version numbers as included in the patch.

---------------------------------------------------------------------------

Lee Kindness wrote:
Content-Description: message body text

> Michael,
>
> Michael Meskes writes:
> > On Thu, Jan 23, 2003 at 02:40:33PM +0530, Shridhar Daithankar<shridhar_daithankar(at)persistent(dot)co(dot)in> wrote:
> > > I would like to use ECPG as it is relatively easy to code. However my
> > > application is multithreaded and also uses connecion pools.
> >
> > I'm afraid it needs some work to be thread-safe. sqlca is defined
> > statically. No big deal it seems to implement a thread safe version but
> > I haven't yet found the time.
>
> 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.
>
> Lee.
>

[ Attachment, skipping... ]

>
> ---------------------------(end of broadcast)---------------------------
> TIP 3: if posting/reading through Usenet, please send an appropriate
> subscribe-nomail command to majordomo(at)postgresql(dot)org so that your
> message can get through to the mailing list cleanly

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073

Attachment Content-Type Size
unknown_filename text/plain 39.8 KB

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Dennis Björklund 2003-06-15 09:30:11 client encodings
Previous Message Lamar Owen 2003-06-15 03:46:48 Re: Pre-allocation of shared memory ...

Browse pgsql-patches by date

  From Date Subject
Next Message Bruce Momjian 2003-06-15 04:56:32 Re: [HACKERS] ECPG, threading and pooling
Previous Message Bruce Momjian 2003-06-14 19:21:20 Re: Add thread.c and linkage