X-Original-To: pgsql-hackers@postgresql.org Received: from spampd.localdomain (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 4D4AB474E44; Fri, 28 Mar 2003 04:37:30 -0500 (EST) Received: from internet.csl.co.uk (internet.csl.co.uk [194.130.52.3]) by postgresql.org (Postfix) with ESMTP id EC6B3476334; Fri, 28 Mar 2003 04:37:26 -0500 (EST) Received: from euphrates.csl.co.uk (host-194-67.csl.co.uk [194.130.52.67]) by internet.csl.co.uk (8.12.8/8.12.8) with ESMTP id h2S9bHCv015319; Fri, 28 Mar 2003 09:37:17 GMT Received: from kelvin.csl.co.uk by euphrates.csl.co.uk (8.9.3/ConceptI 2.4) id JAA05835; Fri, 28 Mar 2003 09:37:11 GMT Received: by kelvin.csl.co.uk (8.11.6) id h2S9b8l08075; Fri, 28 Mar 2003 09:37:08 GMT From: Lee Kindness MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <16004.6084.733022.946746@kelvin.csl.co.uk> Date: Fri, 28 Mar 2003 09:37:08 +0000 To: Philip Yarra Cc: pgsql-interfaces@postgresql.org, Lee Kindness , pgsql-hackers@postgresql.org, Bruce Momjian , Michael Meskes Subject: ECPG thread-safety In-Reply-To: <200303281144.37663.philip@utiba.com> References: <200303281144.37663.philip@utiba.com> X-Mailer: VM 7.00 under 21.4 (patch 6) "Common Lisp" XEmacs Lucid X-Spam-Status: No, hits=-35.0 required=5.0 tests=BAYES_01,EMAIL_ATTRIBUTION,IN_REP_TO,REFERENCES, REPLY_WITH_QUOTES,USER_AGENT_VM autolearn=ham version=2.50 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.50 (1.173-2003-02-20-exp) X-Archive-Number: 200303/1146 X-Sequence-Number: 37392 Philip, You can find the "patch so far" at: http://services.csl.co.uk/postgresql/ along with a libpq thread-safe patch. The thread referenced by Bruce's email details some of the issues still to be looked at. The main work is integration with the build system (testing for and linking in POSIX threads) and testing. I'm more than happy for you to look at at, I haven't had the time I hoped to complete this. Thanks, Lee. Philip Yarra writes: > As I found out recently, ECPG is not thread-safe. This is a problem for us, as > we really need to be able to use ECPG* in a multi-threaded C application. > Michael mentioned that Lee is working on fixing these problems, but was not > sure when it would be complete. > > So, my questions are: > Lee/anyone, do you have an estimated completion date? > If not, can we (myself plus a "real" C programmer) help you? > > Regards, Philip Yarra. > > * Yes, we could use libpq, but ECPG minimises our porting from Informix. > Rewriting everything to use libpq would be too expensive. >