Received: from magus.postgresql.org (magus.postgresql.org [87.238.57.229]) by mail.postgresql.org (Postfix) with ESMTP id 1E2CD1178C45 for ; Wed, 30 Nov 2011 08:27:37 -0400 (AST) Received: from wulczer.org ([109.74.195.157]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1RVjGB-0007JS-5I for pgsql-hackers@postgresql.org; Wed, 30 Nov 2011 12:27:36 +0000 Received: from [85.59.228.11] (helo=[10.0.0.101]) by wulczer.org with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.72) (envelope-from ) id 1RVjFw-0001aZ-9D; Wed, 30 Nov 2011 12:27:21 +0000 Message-ID: <4ED62127.8050902@wulczer.org> Date: Wed, 30 Nov 2011 13:27:19 +0100 From: =?UTF-8?B?SmFuIFVyYmHFhHNraQ==?= User-Agent: Mozilla/5.0 (X11; Linux i686; rv:8.0) Gecko/20111105 Thunderbird/8.0 MIME-Version: 1.0 To: Joel Jacobson CC: pgsql-hackers@postgresql.org Subject: Re: Java LISTEN/NOTIFY client library work-around References: In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -3.1 (---) X-Archive-Number: 201111/1717 X-Sequence-Number: 199201 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