Re: Ecpg and reentrancy

Поиск
Список
Период
Сортировка
От Michael Meskes
Тема Re: Ecpg and reentrancy
Дата
Msg-id 20020205143304.GA25573@credativ.de
обсуждение исходный текст
Ответ на Ecpg and reentrancy  ("Dann Corbit" <DCorbit@connx.com>)
Список pgsql-hackers
On Mon, Feb 04, 2002 at 04:51:38PM -0800, Dann Corbit wrote:
> Because the Ecpg project uses a global sqlca, it can be accessed by only
> one thread at a time.

That's correct.

> If (instead) we had a user supplied sqlca, it could be used by multiple
> threads.

How do you want to supply it? 

> Why not have the user allocate the sqlca or pass it in as a parameter
> (maybe they want an auto sqlca).

That's not exactly the way other RDBMS handle it. Thus compatibility might
become a problem. 

> In any case: a single, global sqlca is a very bad thing. (IMO-YMMV).

Okay, let's talk about a better way.

> Question:
> Why no sqlda structure?  Every other embedded SQL I have used has the
> sqlda {and it is darn useful}.

Noone volunteered to implement it. :-)

Michael
-- 
Michael Meskes
Michael@Fam-Meskes.De
Go SF 49ers! Go Rhein Fire!
Use Debian GNU/Linux! Use PostgreSQL!


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Alessio Bragadini
Дата:
Сообщение: Re: Management tool support and scalibility
Следующее
От: Denis Perchine
Дата:
Сообщение: Re: v7.2 rolled last night ...