X-Original-To: pgsql-hackers@postgresql.org Received: from spampd.localdomain (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 12E3D475E77; Fri, 28 Mar 2003 10:54:40 -0500 (EST) Received: from candle.pha.pa.us (momjian.navpoint.com [207.106.42.251]) by postgresql.org (Postfix) with ESMTP id 3D31247580B; Fri, 28 Mar 2003 10:54:30 -0500 (EST) Received: (from pgman@localhost) by candle.pha.pa.us (8.11.6/8.10.1) id h2SFsNd04438; Fri, 28 Mar 2003 10:54:23 -0500 (EST) From: Bruce Momjian Message-Id: <200303281554.h2SFsNd04438@candle.pha.pa.us> Subject: Re: ECPG thread-safety In-Reply-To: <16004.6084.733022.946746@kelvin.csl.co.uk> To: Lee Kindness Date: Fri, 28 Mar 2003 10:54:23 -0500 (EST) Cc: Philip Yarra , pgsql-interfaces@postgresql.org, pgsql-hackers@postgresql.org, Michael Meskes X-Mailer: ELM [version 2.4ME+ PL99 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII X-Spam-Status: No, hits=-26.0 required=5.0 tests=BAYES_01,EMAIL_ATTRIBUTION,IN_REP_TO,QUOTED_EMAIL_TEXT, REPLY_WITH_QUOTES 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/1150 X-Sequence-Number: 37396 I have the libpq patch in my mailbox that just needs configure thread testing code. I will get that in for 7.4. --------------------------------------------------------------------------- Lee Kindness wrote: > 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. > > > -- Bruce Momjian | http://candle.pha.pa.us pgman@candle.pha.pa.us | (610) 359-1001 + If your life is a hard drive, | 13 Roberts Road + Christ can be your backup. | Newtown Square, Pennsylvania 19073