X-Original-To: pgsql-hackers@postgresql.org Received: from spampd.localdomain (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 3836C475E77 for ; Fri, 28 Mar 2003 11:14:59 -0500 (EST) Received: from www.pspl.co.in (www.pspl.co.in [202.54.11.65]) by postgresql.org (Postfix) with ESMTP id 4413447580B for ; Fri, 28 Mar 2003 11:14:56 -0500 (EST) Received: (from root@localhost) by www.pspl.co.in (8.11.6/8.11.6) id h2SGExH09720 for ; Fri, 28 Mar 2003 21:44:59 +0530 Received: from daithan.intranet.pspl.co.in (daithan.intranet.pspl.co.in [192.168.7.161]) by www.pspl.co.in (8.11.6/8.11.0) with ESMTP id h2SGExm09715 for ; Fri, 28 Mar 2003 21:44:59 +0530 From: Shridhar Daithankar To: pgsql-hackers@postgresql.org Subject: Re: ECPG thread-safety Date: Fri, 28 Mar 2003 21:45:53 +0530 User-Agent: KMail/1.5 References: <200303281600.h2SG0lP05298@candle.pha.pa.us> In-Reply-To: <200303281600.h2SG0lP05298@candle.pha.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200303282145.53705.shridhar_daithankar@nospam.persistent.co.in> X-Spam-Status: No, hits=-32.5 required=5.0 tests=BAYES_01,EMAIL_ATTRIBUTION,IN_REP_TO,QUOTED_EMAIL_TEXT, REFERENCES,REPLY_WITH_QUOTES,USER_AGENT 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/1155 X-Sequence-Number: 37401 On Friday 28 March 2003 21:30, you wrote: > Would someone take those patches and hunt around for proper 'configure' > tests? I can do the configure coding, but I don't know what tests to > make. > > http://services.csl.co.uk/postgresql/ I also need configure tests for thread for one of my other application and don't know how to put them. So I have left those as additional ldflags options to users. I suggest we somehow test following config to start with 1) Linuxthreads on linux Threads are usually installed in /usr/ So pthread.h and -lpthread should work on most setups. 2) Native freeBSD threads pthread.h in /usr/include and lc_r 3)linuxthreads on freeBSD, ports collection /usr/local/include/pthreads/linuxthreads/pthread.h /usr/local/lib/libpthread.so For testing the library, I think it is enough to init an thread attr. like pthread_init_attr, that should be enough to test header and library. I don't how we are going to let people specify thread implementation where there are multiple thread libraries are available .e.g. freeBSD. HTH Shridhar