Ecpg and reentrancy - Mailing list pgsql-hackers

From Dann Corbit
Subject Ecpg and reentrancy
Date
Msg-id D90A5A6C612A39408103E6ECDD77B8290FD49C@voyager.corporate.connx.com
Whole thread Raw
Responses Re: Ecpg and reentrancy  (Michael Meskes <meskes@postgresql.org>)
List pgsql-hackers
Suggestion:
Because the Ecpg project uses a global sqlca, it can be accessed by only
one thread at a time.
If (instead) we had a user supplied sqlca, it could be used by multiple
threads.
Why not have the user allocate the sqlca or pass it in as a parameter
(maybe they want an auto sqlca).
In any case: a single, global sqlca is a very bad thing. (IMO-YMMV).

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


pgsql-hackers by date:

Previous
From: "Dann Corbit"
Date:
Subject: Request for documentation
Next
From: bpalmer
Date:
Subject: Re: Replication