PGConnection.getNotifications(0) doesn't block - Mailing list pgsql-jdbc

From Pawel Veselov
Subject PGConnection.getNotifications(0) doesn't block
Date
Msg-id CAMnJ+Bf7STMy2DwKjT12dxT-j+Han1KoVSkmFZ9Otuwd6to+DA@mail.gmail.com
Whole thread Raw
Responses Re: PGConnection.getNotifications(0) doesn't block
Re: PGConnection.getNotifications(0) doesn't block
List pgsql-jdbc
Hello.

I'm implementing a bit that is expected to wait for published channel
notifications,
and once there are any - process them.

I'm using PGConnection.getNotifications(0), but that immediately
returns an empty
array, and doesn't block like JavaDoc says it should.

I'm on 42.6.0.

What am I missing?

Thank you.



pgsql-jdbc by date:

Previous
From: Laurenz Albe
Date:
Subject: Re: Executing the same query multiple times gets slow
Next
From: Pawel Veselov
Date:
Subject: Re: PGConnection.getNotifications(0) doesn't block