X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 6DAE6DA6C6 for ; Wed, 23 Nov 2005 03:54:14 -0400 (AST) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 78047-03 for ; Wed, 23 Nov 2005 07:54:14 +0000 (GMT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from mxfep01.bredband.com (mxfep01.bredband.com [195.54.107.70]) by svr1.postgresql.org (Postfix) with ESMTP id 430D6D9792 for ; Wed, 23 Nov 2005 03:54:10 -0400 (AST) Received: from ironport.bredband.com ([195.54.107.82] [195.54.107.82]) by mxfep01.bredband.com with ESMTP id <20051123075411.POJY26888.mxfep01.bredband.com@ironport.bredband.com> for ; Wed, 23 Nov 2005 08:54:11 +0100 Received: from c-edaae255.027-12-67626717.cust.bredbandsbolaget.se (HELO junk.nocrew.org) ([85.226.170.237]) by ironport.bredband.com with ESMTP; 23 Nov 2005 08:53:28 +0100 X-BrightmailFiltered: true X-IronPort-AV: i="3.97,364,1125871200"; d="scan'208"; a="12331661:sNHT30827682" Received: from tomas by junk.nocrew.org with local (Exim 4.50) id 1EepSF-0002ur-6z; Wed, 23 Nov 2005 08:54:11 +0100 To: "Merlin Moncure" Cc: Subject: Re: asynchronous execution References: <6EE64EF3AB31D5448D0007DD34EEB3417DD952@Herge.rcsinc.local> From: tomas@nocrew.org (=?iso-8859-1?q?Tomas_Sk=E4re?=) Date: Wed, 23 Nov 2005 08:54:11 +0100 In-Reply-To: <6EE64EF3AB31D5448D0007DD34EEB3417DD952@Herge.rcsinc.local> (Merlin Moncure's message of "Tue, 22 Nov 2005 16:37:49 -0500") Message-ID: <80veyjvly4.fsf@junk.nocrew.org> User-Agent: Gnus/5.1007 (Gnus v5.10.7) Emacs/21.4 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0 required=5 tests=[none] X-Spam-Score: 0 X-Spam-Level: X-Archive-Number: 200511/195 X-Sequence-Number: 6431 "Merlin Moncure" writes: >> Are there any work done, or plans for implementing asynchronous >> execution in psqlodbc? > > Not sure about future plans, but there is nothing stopping you from > opening thread in your app and running odbc call that way. It's not that easy, because the application is using libraries that are not threadsafe, and I thought it would be best to use ODBC async functionality, if it's available. Separating just the ODBC calls in another thread would be too much trouble. >> Does libpq support asynchronous calls? > > yes: > http://www.postgresql.org/docs/8.1/interactive/libpq-async.html > > If you have deep requirements and/or are extremely speed concerned > (and are not concerned about portability), you may want to make direct > use of liqpq api. That's also not an option, since we'd like to have the possibility of choosing another DBMS. Oh well, I'll live with blocking functions right now, and if we really need it, I guess I'll have to try to implement it into psqlodbc. Tomas