From: | ITAGAKI Takahiro <itagaki(dot)takahiro(at)oss(dot)ntt(dot)co(dot)jp> |
---|---|
To: | pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: ecpg PREPARE is not thread safe |
Date: | 2007-09-21 11:25:02 |
Message-ID: | 20070921201822.68ED.ITAGAKI.TAKAHIRO@oss.ntt.co.jp |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers pgsql-patches |
Michael Meskes <meskes(at)postgresql(dot)org> wrote:
> Right now the prepared statements are not considered connection
> specific. I'm not sure whether the standard says anything about this.
> But moving this data shoudln't be a major problem.
>
> > Even if we have some kinds of exclusive controls, current ecpg might not
> > good at prepared statements when we use multiple connections in a signle
> > thread or do multiple PREPARE in multiple threads. If so, 1 and 2 are not
> > correct fixes.
>
> Sorry, I don't get this. What exactly are you talking about here?
I'm worried that prepared statements are used in another connection.
ECPG does not consider in which connection the statements is prepared.
Are there any mix-up problem here? If no, the TSD approach is enough
to fix the race condition. If yes, per-connection approach is needed.
Regards,
---
ITAGAKI Takahiro
NTT Open Source Software Center
From | Date | Subject | |
---|---|---|---|
Next Message | Heikki Linnakangas | 2007-09-21 11:50:01 | Re: HOT is applied |
Previous Message | Abhijit Menon-Sen | 2007-09-21 11:20:15 | TODO/exotic features/sql*net |
From | Date | Subject | |
---|---|---|---|
Next Message | Marshall, Steve | 2007-09-21 11:55:24 | Re: PL/TCL Patch to prevent postgres from becoming multithreaded |
Previous Message | Michael Meskes | 2007-09-21 10:45:18 | Re: ecpg PREPARE is not thread safe |