Skip site navigation (1) Skip section navigation (2)

PATCH: Update LISTEN/NOTIFY documentation, PGConnection JavaDoc

From: Craig Ringer <craig(at)postnewspapers(dot)com(dot)au>
To: pgsql-jdbc(at)postgresql(dot)org
Subject: PATCH: Update LISTEN/NOTIFY documentation, PGConnection JavaDoc
Date: 2009-12-11 15:52:42
Message-ID: 4B226ACA.4080103@postnewspapers.com.au (view raw or flat)
Thread:
Lists: pgsql-jdbc
Hi folks

It seems the JDBC driver no longer requires a query to be issued before
it will notice new notify messages and be able to process them via
getNotifications() . The JDBC driver documentation doesn't reflect this.

I've attached a patch that updates the documentation. It includes one
thing I'm not 100% sure of, though:

- It states that the need for a dummy query was removed in the 8.1
driver, but I'm not sure that it was in fact 8.1 (and have no idea what
the build number was). Before I went CVS-history-diving I thought I'd
ask and see if anybody knew when the change was.

In addition to correcting the confusion, I've added @see links to the Pg
 LISTEN/NOTIFY docs, added a note about older versions requiring a dummy
select, noted that calling getNotifications() doesn't create network
traffic, and fixed an unrelated place where "8.1" should've read "8.1 or
later".

--
Craig Ringer

Attachment: PgJDBC-notify.diff
Description: text/x-patch (4.4 KB)

Responses

pgsql-jdbc by date

Next:From: Michael NacosDate: 2009-12-11 16:05:04
Subject: real -> numeric -> real result different through jdbc
Previous:From: Craig RingerDate: 2009-12-11 15:39:21
Subject: Re: Cheapest way to poll for notifications?

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group