From: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
---|---|
To: | Lee Kindness <lkindness(at)csl(dot)co(dot)uk> |
Cc: | pgsql-patches(at)postgresql(dot)org, Shridhar Daithankar <shridhar(at)frodo(dot)hserus(dot)net>, Michael Meskes <meskes(at)postgresql(dot)org> |
Subject: | Re: ECPG - Remove need for "AT connection" when using threads |
Date: | 2004-03-14 14:10:25 |
Message-ID: | 200403141410.i2EEAP006430@candle.pha.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers pgsql-patches |
Patch applied by Michael. Thanks.
---------------------------------------------------------------------------
Lee Kindness wrote:
> Attached diff improves the handling of connections in ecpg when threading is
> used. The "current connection" is now the last connection made/set for the
> thread in question - not the absolute last connection made/set (over all
> threads in the process). This change removes the tedious need to always use
> "AT connection" for each and every EXEC SQL call (an item on the TODO).
>
> The "test_thread_implicit" test program added in the last email will
> function as intended with this patch.
>
> Thanks, L.
>
> ----- Original Message -----
> From: Lee Kindness
> To: pgsql-patches(at)postgresql(dot)org
> Cc: Bruce Momjian ; Lee Kindness ; Shridhar Daithankar
> Sent: Saturday, March 06, 2004 3:07 PM
> Subject: ECPG: Update tests & memory leak fix
>
> See attached diff which corrects a per-thread memory leak in libecpg and
> changes the thread test program to create a user defined number of threads.
> Also attached tar.gz adds an additional thread test, which currently does
> NOT work as expected and is one of the cases Shridar and I will be looking
> at (removing need for AT xxx on every EXEC SQL).
>
> Note, the updated test shows that ECPG currently DOES support the
> specification of connection names by host variables (not only static strings
> as I had said previously).
>
> Thanks, L.
[ Attachment, skipping... ]
--
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
From | Date | Subject | |
---|---|---|---|
Next Message | Bruce Momjian | 2004-03-14 14:11:27 | Re: ECPG - Remove need for "AT connection" when using threads |
Previous Message | Bruce Momjian | 2004-03-14 14:08:01 | Re: libpq thread safety |
From | Date | Subject | |
---|---|---|---|
Next Message | Bruce Momjian | 2004-03-14 14:11:27 | Re: ECPG - Remove need for "AT connection" when using threads |
Previous Message | Bruce Momjian | 2004-03-14 14:10:14 | Re: ECPG: Update tests & memory leak fix |