Received: from golem.jpl.nasa.gov (IDENT:postfix@dialin-093.jpl.nasa.gov [128.149.231.93]) by hub.org (8.10.1/8.11.0) with ESMTP id e9PEPNO52880 for ; Wed, 25 Oct 2000 10:25:23 -0400 (EDT) (envelope-from lockhart@alumni.caltech.edu) Received: from alumni.caltech.edu (localhost.localdomain [127.0.0.1]) by golem.jpl.nasa.gov (Postfix) with ESMTP id AD87EE7D2; Wed, 25 Oct 2000 14:41:33 +0000 (UTC) Message-ID: <39F6F11D.79C5800B@alumni.caltech.edu> Date: Wed, 25 Oct 2000 14:41:33 +0000 From: Thomas Lockhart Organization: Yes X-Mailer: Mozilla 4.73 [en] (X11; I; Linux 2.2.15-4mdksmp i686) X-Accept-Language: en MIME-Version: 1.0 To: Kovacs Zoltan Sandor Cc: pgsql-interfaces@postgresql.org Subject: Re: signals in ODBC? References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200010/205 X-Sequence-Number: 1562 > My goal is for a connection to receive signals from other connections. > E.g., I would get the information about changing a row of a table by > an other connection. This would be great having the information at once. > An ugly and slow solution is to send queries to the server e.g. twice > a minute or so---but is there a better way? afaik we need multithreaded clients (and servers) to be able to do this. It would be a nice capability, but asynchronous communication requires that you set up a separate thread to receive a callback. I'm pretty sure we have none of the required infrastructure in our existing communication protocol. > Browsing the documentation I found NOTIFY and LISTEN. Can I use them > within an ODBC connection? Is it possible to catch a NOTIFY signal this way? 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. > As I realized, the NOTIFY statement doesn't have a second parameter, > i.e. I cannot give any other signal to an other connection than > "Yes" or "No". What about future plans? No future plans afaik. Commercial Ingres allowed a text string to be associated with a NOTIFY message, which presumably would require a more involved (and difficult to manage) underlying structure to be created. - Thomas