Received: from localhost (maia-2.hub.org [200.46.204.187]) by postgresql.org (Postfix) with ESMTP id 794879FBE69 for ; Tue, 5 Jun 2007 11:36:17 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.187]) (amavisd-maia, port 10024) with ESMTP id 03711-03-7 for ; Tue, 5 Jun 2007 11:36:02 -0300 (ADT) X-Greylist: delayed 00:29:25.258363 by SQLgrey-1.7.5 Received: from svr4.postgresql.org (svr4.postgresql.org [66.98.251.159]) by postgresql.org (Postfix) with ESMTP id 975B29FBEA6 for ; Tue, 5 Jun 2007 11:35:34 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.3 Received: from gslimes3.sigma.fr (mx.sigma.fr [195.25.81.244]) by svr4.postgresql.org (Postfix) with ESMTP id B47BC5AF03F for ; Tue, 5 Jun 2007 14:06:08 +0000 (GMT) Received: from mercure.sigma.fr (mercure.sigma.fr [195.25.81.9]) by gslimes3.sigma.fr (Postfix) with ESMTP id 4E7E334AD1 for ; Tue, 5 Jun 2007 16:06:05 +0200 (CEST) Received: from localhost (localhost.localdomain [127.0.0.1]) by mercure.sigma.fr (Postfix) with ESMTP id 406E655C27 for ; Tue, 5 Jun 2007 16:06:05 +0200 (CEST) Received: from mercure.sigma.fr ([127.0.0.1]) by localhost (mercure-1 [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 30597-34 for ; Tue, 5 Jun 2007 16:06:05 +0200 (CEST) Received: from marc (unknown [192.168.1.1]) by mercure.sigma.fr (Postfix) with ESMTP id 2361942DAB for ; Tue, 5 Jun 2007 16:06:05 +0200 (CEST) From: Marc Cousin Organization: Sigma Informatique To: pgsql-admin@postgresql.org Subject: about threaded libpq Date: Tue, 5 Jun 2007 16:06:04 +0200 User-Agent: KMail/1.9.6 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200706051606.04810.mcousin@sigma.fr> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.001 tagged_above=0 required=5 tests=BAYES_50=0.001 X-Spam-Level: X-Archive-Number: 200706/31 X-Sequence-Number: 25699 Hi, I'm currently working with bacula developpers in order to improve performance (mainly for postgresql). In order for our new code to work, we need to be sure that libpq is threaded. For 8.2, we can use PQisthreadsafe();. The problem is we cannot force all users to migrate to 8.2, and that many of them use packaged postgresql binaries. Is there another reliable way to determine (at bacula configure time for instance) that libpq is threaded ? (it also has to be a way/several ways that works on all platforms, as bacula runs on many unix and win32). We'd like to do it as well as possible. Thanks a lot for feedback... Marc Cousin