Received: from magus.postgresql.org ([87.238.57.229]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1T2ZPf-00015O-8V for pgsql-jdbc@postgresql.org; Sat, 18 Aug 2012 03:09:23 +0000 Received: from mail-pz0-f46.google.com ([209.85.210.46]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1T2ZPa-00086l-F7 for pgsql-jdbc@postgresql.org; Sat, 18 Aug 2012 03:09:20 +0000 Received: by dady13 with SMTP id y13so1102089dad.19 for ; Fri, 17 Aug 2012 20:09:14 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:x-gm-message-state; bh=NFizPt2izmVrVzJ5R2FbE/sCXr5vQeaWdcAKP4FZ5lo=; b=dy2Tva/uJvNlDQt8wg2uBwQe/1sf1HHCcVe2JRm44axvieX2T/EEykBfF1MLn2BMEv 85Xxa/g8BMT9ofKXXiWhCs/JCwrzNK1OeUuto11Y5WcY6ReH9nNqnT6r7WXZX8JiqY8H SWGNRR7Cdh4mb6E4WF0S2hOy/VLi4JlyND97xrH/HrOjPwN1v7SAlhuUnkLcrnjQzM3s EpJVJHP7VoXNoxk09H/HN2iZHs6lYAXP0tOjZjsyMHn8xzMdBmfsImWnfKPZzCXXKEgq Qa1KLqpBOaEbRMoqjNGqCNEYTVLjl8Tnd4NIx4Eqb/Ioly2wtO/m2cHTotHPcayn66FR WKFA== Received: by 10.68.226.167 with SMTP id rt7mr16108122pbc.146.1345259354469; Fri, 17 Aug 2012 20:09:14 -0700 (PDT) Received: from ayaki.localdomain ([211.31.76.34]) by mx.google.com with ESMTPS id kc7sm6153637pbb.5.2012.08.17.20.09.11 (version=SSLv3 cipher=OTHER); Fri, 17 Aug 2012 20:09:13 -0700 (PDT) Message-ID: <502F0754.8000406@ringerc.id.au> Date: Sat, 18 Aug 2012 11:09:08 +0800 From: Craig Ringer User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:14.0) Gecko/20120717 Thunderbird/14.0 MIME-Version: 1.0 To: k f CC: pgsql-jdbc@postgresql.org Subject: Re: PGConnection getNotifications References: In-Reply-To: Content-Type: multipart/alternative; boundary="------------030809030309020708070006" X-Gm-Message-State: ALoCoQlRjsc3RnZ5ALoDmImbU5xZnpjIVSWQhcPo645WlemDM3fW2RJ1mVIE//6VsRsMwbAxlMOC X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201208/48 X-Sequence-Number: 23203 This is a multi-part message in MIME format. --------------030809030309020708070006 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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 --------------030809030309020708070006 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit
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

--------------030809030309020708070006--