From: tomas@nocrew.org
To: Merlin Moncure <merlin.moncure@rcsonline.com>
Cc: pgsql-odbc@postgresql.org
Subject: Re: asynchronous execution
Date: Wed, 23 Nov 2005 08:54:11 +0100
Message-ID: <80veyjvly4.fsf@junk.nocrew.org> (raw)
In-Reply-To: <6EE64EF3AB31D5448D0007DD34EEB3417DD952@Herge.rcsinc.local>
References: <6EE64EF3AB31D5448D0007DD34EEB3417DD952@Herge.rcsinc.local>
"Merlin Moncure" <merlin.moncure@rcsonline.com> 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-odbc@postgresql.org
Cc: tomas@nocrew.org, merlin.moncure@rcsonline.com
Subject: Re: asynchronous execution
In-Reply-To: <80veyjvly4.fsf@junk.nocrew.org>
References: <6EE64EF3AB31D5448D0007DD34EEB3417DD952@Herge.rcsinc.local> <80veyjvly4.fsf@junk.nocrew.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox