Re: signals in ODBC? - Mailing list pgsql-interfaces

From Philip Warner
Subject Re: signals in ODBC?
Date
Msg-id 3.0.5.32.20001027010536.03c06c00@mail.rhyme.com.au
Whole thread Raw
In response to Re: signals in ODBC?  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: signals in ODBC?
List pgsql-interfaces
At 14:01 25/10/00 -0400, Tom Lane wrote:
>> LISTEN happens on a table (or actually any arbitrary name; it doesn't
>> need an underlying object). But afaik you have to do a query to get your
>> LISTEN to fire on the client, since none of our clients are
>> multithreaded.
>
>I don't know whether the ODBC driver, or even the ODBC API, allows for
>asynchronous NOTIFY, but it works just fine in plain libpq.  My former
>company used to rely on NOTIFY all the time for cross-client signaling.
>It hasn't been necessary to issue dummy queries since 6.4 or so.
>

ODBC 1 & 2 don't. I doubt 3 does either. What would be really kind of nice
is if we had:
   LISTEN <name> [<port>]

which would send notifications to the specified port on the client machine.
Then with a small amount of effort, ODBC users could take advantage of
notifications. Does this sound easy/hard and worthwhile?

----------------------------------------------------------------
Philip Warner                    |     __---_____
Albatross Consulting Pty. Ltd.   |----/       -  \
(A.B.N. 75 008 659 498)          |          /(@)   ______---_
Tel: (+61) 0500 83 82 81         |                 _________  \
Fax: (+61) 0500 83 82 82         |                 ___________ |
Http://www.rhyme.com.au          |                /           \|                                |    --________--
PGP key available upon request,  |  /
and from pgp5.ai.mit.edu:11371   |/


pgsql-interfaces by date:

Previous
From: Peter Mount
Date:
Subject: RE: JDBC help
Next
From: Tom Lane
Date:
Subject: Re: signals in ODBC?