From: Philippe Ebersohl <philippe.ebersohl@dalim.com>
To: Dave Cramer <pg@fastcrypt.com>
Cc: List <pgsql-jdbc@postgresql.org>
Subject: Re: A method to asynchronously LISTEN ?
Date: Mon, 25 Feb 2019 10:15:00 +0100 (CET)
Message-ID: <1855336325.5176233.1551086100885.JavaMail.zimbra@dalim.com> (raw)
In-Reply-To: <CADK3HH+bB96W_6Qiyd=+iU3rNvdo=jsbcYN=GvRjZo4MNbuxPA@mail.gmail.com>
References: <1058674020.3669693.1550249725415.JavaMail.zimbra@dalim.com>
<CADK3HH+bB96W_6Qiyd=+iU3rNvdo=jsbcYN=GvRjZo4MNbuxPA@mail.gmail.com>
Hello Dave,
This is, sir, what we would like !
However looking at line 47-50 of
pgjdbc/src/test/java/org/postgresql/test/jdbc2/NotifyTest.java
How do we guaranty that the listener is called before the assertTrue() is fired ?
stmt . executeUpdate( " NOTIFY mynotification " );
assertTrue(flag . get());
Best regards,
Philippe
From: "Dave Cramer" <pg@fastcrypt.com>
To: "Philippe Ebersohl" <philippe.ebersohl@dalim.com>
Cc: "List" <pgsql-jdbc@postgresql.org>
Sent: Friday, 22 February, 2019 20:03:46
Subject: Re: A method to asynchronously LISTEN ?
Hi Philippe,
So this is old, but I didn't get much response https://github.com/pgjdbc/pgjdbc/pull/579
have a look and see if it works for you. If so we can look at putting it in.
Dave Cramer
davec@postgresintl.com
www.postgresintl.com
On Sat, 16 Feb 2019 at 03:36, Philippe Ebersohl < philippe.ebersohl@dalim.com > wrote:
Hello,
I checked the documentation and FAQ at jdbc.postgresql.org
Is there a roadmap of feature implementation for the jdbc driver ?
Are there plans to include something similar to the PGNotificationListener found in pgjdbc-ng?
Which does not require to send SELECT to the postgres.
We would if possible only use one postgresql jdbc driver.
I hope I hit the right list for my questions.
Thank you.
Best regards,
Philippe Ebersohl
(null)
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: philippe.ebersohl@dalim.com, pg@fastcrypt.com
Subject: Re: A method to asynchronously LISTEN ?
In-Reply-To: <1855336325.5176233.1551086100885.JavaMail.zimbra@dalim.com>
References: <1058674020.3669693.1550249725415.JavaMail.zimbra@dalim.com> <CADK3HH+bB96W_6Qiyd=+iU3rNvdo=jsbcYN=GvRjZo4MNbuxPA@mail.gmail.com> <1855336325.5176233.1551086100885.JavaMail.zimbra@dalim.com>
* 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