Re: A method to asynchronously LISTEN ?

Dave Cramer <[email protected]> Mon, 25 Feb 2019 10:13:49 -0500
Newsgroups gmane.comp.db.postgresql.jdbc
Message-ID <CADK3HHLM2CX5QVfCoZ7D5B688twxOPys2ZMNtDXja-fKqe_kLg@mail.gmail.com>
Philippe




On Mon, 25 Feb 2019 at 04:15, Philippe Ebersohl <[email protected]>
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
> <https://github.com/pgjdbc/pgjdbc/pull/579/commits/229d10adf6686805004491a0d94de076d8e1a3ea#diff-d8d2d4b4d2f26fb01b761a7a12be0741>
>
> 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

[email protected]
www.postgresintl.com


*From: *"Dave Cramer" <[email protected]>
> *To: *"Philippe Ebersohl" <[email protected]>
> *Cc: *"List" <[email protected]>
> *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
>
> [email protected]
> www.postgresintl.com
>
>
> On Sat, 16 Feb 2019 at 03:36, Philippe Ebersohl <
> [email protected]> 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)
>>
>>
>>
>