pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Howto access payload of notify?
2+ messages / 2 participants
[nested] [flat]

* Howto access payload of notify?
@ 2011-01-16 10:51 Clemens Eisserer <linuxhippy@gmail.com>
  2011-01-16 11:08 ` Re: Howto access payload of notify? Thomas Kellerer <spam_eater@gmx.net>
  0 siblings, 1 reply; 2+ messages in thread

From: Clemens Eisserer @ 2011-01-16 10:51 UTC (permalink / raw)
  To: pgsql-jdbc

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



^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: Howto access payload of notify?
  2011-01-16 10:51 Howto access payload of notify? Clemens Eisserer <linuxhippy@gmail.com>
@ 2011-01-16 11:08 ` Thomas Kellerer <spam_eater@gmx.net>
  0 siblings, 0 replies; 2+ messages in thread

From: Thomas Kellerer @ 2011-01-16 11:08 UTC (permalink / raw)
  To: 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






^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2011-01-16 11:08 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2011-01-16 10:51 Howto access payload of notify? Clemens Eisserer <linuxhippy@gmail.com>
2011-01-16 11:08 ` Thomas Kellerer <spam_eater@gmx.net>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox