pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andrew Dunstan <andrew@dunslane.net>
To: Jan Urbański <wulczer@wulczer.org>
Cc: Joel Jacobson <joel@gluefinance.com>
Cc: pgsql-hackers@postgresql.org
Subject: Re: Java LISTEN/NOTIFY client library work-around
Date: Wed, 30 Nov 2011 08:58:04 -0500
Message-ID: <4ED6366C.7000602@dunslane.net> (raw)
In-Reply-To: <4ED62127.8050902@wulczer.org>
References: <CA+9pJHR4SaDbxWGCJKVE0msH6sZKZbNKrzmpUrzjKPn5n9LV2A@mail.gmail.com>
	<4ED62127.8050902@wulczer.org>



On 11/30/2011 07:27 AM, Jan Urbański wrote:
> On 30/11/11 13:07, Joel Jacobson wrote:
>> Hi,
>>
>> As you know, LISTEN/NOTIFY is broken in the Java client library. You 
>> have
>> to do a SELECT 1 in a while-loop to receive the notifications.
>>
>> http://jdbc.postgresql.org/documentation/head/listennotify.html
>>
>> Is there some other library with a proper implementation where you don't
>> have to spam the database with queries to get the notifications?
>
> You mean a Java library? If Java is not a requirement, the psycopg2 
> Python library supports notifies well.
>
>

... and probably most libraries that (unlike JDBC) are libpq-based, like 
the perl DBD::Pg.


cheers

andrew



view thread (7+ messages)  latest in thread

Message-ID: <4ED6366C.7000602@dunslane.net>
Permalink:  ../4ED6366C.7000602@dunslane.net/
Also on:    postgresql.org/message-id/4ED6366C.7000602@dunslane.net

 · 

reply

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-jdbc@postgresql.org
  Cc: andrew@dunslane.net, wulczer@wulczer.org, joel@gluefinance.com, pgsql-hackers@postgresql.org
  Subject: Re: Java LISTEN/NOTIFY client library work-around
  In-Reply-To: <4ED6366C.7000602@dunslane.net>
  References: <CA+9pJHR4SaDbxWGCJKVE0msH6sZKZbNKrzmpUrzjKPn5n9LV2A@mail.gmail.com> <4ED62127.8050902@wulczer.org> <4ED6366C.7000602@dunslane.net>

* 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