pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Thomas Kellerer <spam_eater@gmx.net>
To: pgsql-jdbc@postgresql.org
Subject: Re: Howto access payload of notify?
Date: Sun, 16 Jan 2011 12:08:34 +0100
Message-ID: <igujjc$los$1@dough.gmane.org> (raw)
In-Reply-To: <AANLkTimhn8pdjnsOCnsFOzDi5kFjvt3c=GLPUQCfMchx@mail.gmail.com>
References: <AANLkTimhn8pdjnsOCnsFOzDi5kFjvt3c=GLPUQCfMchx@mail.gmail.com>

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






view thread (2+ messages)

Message-ID: <igujjc$los$1@dough.gmane.org>
Permalink:  ../igujjc$los$1@dough.gmane.org/
Also on:    postgresql.org/message-id/igujjc$los$1@dough.gmane.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: spam_eater@gmx.net
  Subject: Re: Howto access payload of notify?
  In-Reply-To: <igujjc$los$1@dough.gmane.org>
  References: <AANLkTimhn8pdjnsOCnsFOzDi5kFjvt3c=GLPUQCfMchx@mail.gmail.com> <igujjc$los$1@dough.gmane.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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