Re: Howto access payload of notify?

From: Thomas Kellerer <spam_eater(at)gmx(dot)net>
To: pgsql-jdbc(at)postgresql(dot)org
Subject: Re: Howto access payload of notify?
Date: 2011-01-16 11:08:34
Message-ID: igujjc$los$1@dough.gmane.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

Clemens Eisserer wrote on 16.01.2011 11:51:
> Hi,
>
> I would like to use the new feature of submitting payload with notify,
> how can I access this data when listening with an jdbc client.
>
> PGNotification seems to lack a getPayload() method.
>
> Thank you in advance, Clemens
>

the method is called getParameter():

This is the Javadoc for it:

Returns additional information from the notifying process.
This feature has only been implemented in server versions 9.0
and later, so previous versions will always return an empty String.

Regards
Thomas

In response to

Browse pgsql-jdbc by date

  From Date Subject
Next Message Robert Haas 2011-01-17 04:27:41 Re: [HACKERS] Fwd: Weird issues when reading UDT from stored function
Previous Message Clemens Eisserer 2011-01-16 10:51:08 Howto access payload of notify?