On 08/17/2012 11:32 PM, k f wrote:
I'm a newbie to postgreSQL so please forgive my ignorance. I am able to write code that connects/updates a database. I copied a simple Notify/Listen example and for the life of me I can't seem to figure out why the getNotifications() method for the PGConnection class is undefined? All the examples use it and the docs say its available after version 7.3 or so. I've installed PostgreSQL 9.1.4, and link to postgresql-9.0-801.jdbc4.jar in my project. What piece am I missing?
Please show your code, preferably a self-contained class that you can post in its entirety.
At a guess, you're trying to use getNotifications() on the JDBC java.sql.Connection object, without unwrapping it to get the underlying PGConnection.
--
Craig Ringer