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

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.

Cheers,
Jan



view thread (7+ messages)  latest in thread

Message-ID: <4ED62127.8050902@wulczer.org>
Permalink:  ../4ED62127.8050902@wulczer.org/
Also on:    postgresql.org/message-id/4ED62127.8050902@wulczer.org

 · 

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