Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gygDN-0000fM-QZ for pgsql-jdbc@arkaria.postgresql.org; Tue, 26 Feb 2019 17:08:22 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gygDM-0003p2-Hg for pgsql-jdbc@arkaria.postgresql.org; Tue, 26 Feb 2019 17:08:20 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gyaRz-0007iE-71 for pgsql-jdbc@lists.postgresql.org; Tue, 26 Feb 2019 10:59:03 +0000 Received: from mail2.dalim.com ([145.253.191.74]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gyaRu-0006KI-Ph for pgsql-jdbc@postgresql.org; Tue, 26 Feb 2019 10:59:00 +0000 Received: from localhost (localhost [127.0.0.1]) by mail2.dalim.com (Postfix) with ESMTP id C5A82166010; Tue, 26 Feb 2019 11:58:51 +0100 (CET) Received: from mail2.dalim.com ([127.0.0.1]) by localhost (mail2.dalim.com [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id rGi_FgtQFndI; Tue, 26 Feb 2019 11:58:51 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by mail2.dalim.com (Postfix) with ESMTP id 1EAA116601E; Tue, 26 Feb 2019 11:58:51 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.9.2 mail2.dalim.com 1EAA116601E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dalim.com; s=C5CD85AE-9875-11E7-8F4E-7B36B4C25526; t=1551178731; bh=Oft0Q7TuHA9L/ki40EbMLcJen84Xy9PcV5yoLEh63HM=; h=Date:From:To:Message-ID:Subject:MIME-Version:Content-Type; b=QX5D8/SWP0WSvtZxP1Bd2ci/eCx0QDJp3SE8bA6JPH0/+KqJqk5trO0G3xHWsidqU GsdLqVLMiaVV0FBU3KAzXWvkE9/1AeRGoLO2pIVoBCdm+QLzp08g33Wj1eLlaQFg0o uBIy1M7rF/2bJg4teTcv/9G4kVkrByhPJFAOyEmc= X-Amavis-Modified: Mail body modified (using disclaimer) - mail2.dalim.com X-Virus-Scanned: amavisd-new at dalim.com Received: from mail2.dalim.com ([127.0.0.1]) by localhost (mail2.dalim.com [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id XGmrtwjzqNJh; Tue, 26 Feb 2019 11:58:50 +0100 (CET) Received: from mail2.dalim.com (localhost [127.0.0.1]) by mail2.dalim.com (Postfix) with ESMTP id E60D5166010; Tue, 26 Feb 2019 11:58:50 +0100 (CET) Date: Tue, 26 Feb 2019 11:58:50 +0100 (CET) From: Philippe Ebersohl To: Dave Cramer Cc: List Message-ID: <369556281.5380944.1551178730406.JavaMail.zimbra@dalim.com> In-Reply-To: References: <1058674020.3669693.1550249725415.JavaMail.zimbra@dalim.com> <1855336325.5176233.1551086100885.JavaMail.zimbra@dalim.com> Subject: Re: A method to asynchronously LISTEN ? MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_5380943_225958324.1551178730405" X-Mailer: Zimbra 8.6.0_GA_1153 (ZimbraWebClient - SAF12 (Mac)/8.6.0_GA_1153) Thread-Topic: A method to asynchronously LISTEN ? Thread-Index: skRZOYPzmBpWagBGvVgsV+26Ygq1Dg== List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk ------=_Part_5380943_225958324.1551178730405 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Hello, This feature is indeed what we would need. In fact I do not understand how the test case works. I am more a sql/database guy. Best regards, Philippe Ebersohl From: "Dave Cramer" To: "Philippe Ebersohl" Cc: "List" Sent: Monday, 25 February, 2019 16:13:49 Subject: Re: A method to asynchronously LISTEN ? Philippe On Mon, 25 Feb 2019 at 04:15, Philippe Ebersohl < philippe.ebersohl@dalim.com > wrote: 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()); I'm not sure exactly what you mean Dave Cramer davec@postgresintl.com www.postgresintl.com BQ_BEGIN 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: BQ_BEGIN 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) BQ_END BQ_END ------=_Part_5380943_225958324.1551178730405 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Hello,

This feature = is indeed what we would need.
In fact I do not understand how the= test case works.
I am more a sql/database guy.

Best regards,
Philippe Ebersohl



From: "Dave Cramer" <pg@fastcry= pt.com>
To: "Philippe Ebersohl" <philippe.ebersohl@dalim.co= m>
Cc: "List" <pgsql-jdbc@postgresql.org>
Sent: Monday, 25 February, 2019 16:13:49
Subject: Re: A method to asy= nchronously LISTEN ?

Philippe



On Mon, 25 Feb 2019 at 04:15, Philippe Ebersohl <philippe.ebers= ohl@dalim.com> wrote:
Hello Dave,

This is, sir, wha= t we would like !

However looking at  line 47-50 of = ;

How do we guaranty that the listener is called b= efore the assertTrue() is fired ?

<= /table>
I'm not sure exactly what yo= u mean

www.postgresintl.com

From: "Dave Cramer" <= ;pg@fastcrypt.com= >
To: "Philippe Ebersohl" <philippe.ebersohl@dalim.com>
= Cc: "List" <pgsql-jdbc@postgresql.org>
Sent: Friday, 22 Februar= y, 2019 20:03:46
Subject: Re: A method to asynchronously LISTEN ?=

Hi Philippe,
S= o this is old, but I didn't get much response https://github.com/pgjdbc/p= gjdbc/pull/579

have a look and see if it works for you. I= f so we can look at putting it in.

On Sat, 16 Feb 2019 at 03:36, Philippe Ebersohl <= ;philippe.= ebersohl@dalim.com> wrote:
Hello,
I checked the doc= umentation and FAQ at jdbc.postgresql.org
Is there a roadmap of feature im= plementation 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

<= br>

(null)


------=_Part_5380943_225958324.1551178730405--
stmt.executeUpdate("NOTIFY mynotification");


assertTrue(flag.get());