Skip site navigation (1) Skip section navigation (2)

Re: C++ client libs

From: Adam Haberlach <adam(at)newsnipple(dot)com>
To: Tim Allen <tim(at)proximity(dot)com(dot)au>
Cc: pgsql-hackers(at)hub(dot)org, pgsql-interfaces(at)hub(dot)org
Subject: Re: C++ client libs
Date: 2000-10-04 03:40:40
Message-ID: 20001003204040.A4515@ricochet.net (view raw or flat)
Thread:
Lists: pgsql-hackerspgsql-interfaces
On Wed, Oct 04, 2000 at 12:38:35PM +1100, Tim Allen wrote:

> >3) Implement asynchronous calls to the back-end permitting multiple
> >   queries to be executed concurrently
> 
> Implement async calls, yes, definitely a good thing to do. But this by
> itself doesn't buy you multiple queries concurrently; for that you need
> multiple connections to the database, which would also be worth doing in
> this library.
> 
> BTW, for async calls, you would want to create some convenient way of
> registering your interest in the socket connection, and some standard
> methods that read the result from it. Presuming the normal use for this is
> via a select-driven event loop, you want to be able to register the socket
> with whatever code drives the select, and register a callback that looks
> at the socket whenever select goes off. Given that there are umpteen dozen
> implementations of a select-driven event loop, it will be a challenge
> developing something that works nicely with all of them.

	My preference would be an easily-overridable function so I could
subclass the parent object and drop in a function to send a BMessage
to an arbitrary BLooper.  Your messaging system may vary...


-- 
Adam Haberlach            | A billion hours ago, human life appeared on
adam(at)newsnipple(dot)com       | earth.  A billion minutes ago, Christianity
http://www.newsnipple.com | emerged.  A billion Coca-Colas ago was
'88 EX500                 | yesterday morning. -1996 Coca-Cola Ann. Rpt.

In response to

pgsql-hackers by date

Next:From: nathanDate: 2000-10-04 05:20:55
Subject: Re: AIX compile ?? libcrypt HELP !!
Previous:From: Tom LaneDate: 2000-10-04 03:33:25
Subject: Re: [INTERFACES] C++ client libs

pgsql-interfaces by date

Next:From: Gabriel LopezDate: 2000-10-04 12:19:12
Subject: LargeObjectManager problem
Previous:From: Tom LaneDate: 2000-10-04 03:33:25
Subject: Re: [INTERFACES] C++ client libs

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group