Re: implementing asynchronous notifications - Mailing list pgsql-jdbc

From Andras Kadinger
Subject Re: implementing asynchronous notifications
Date
Msg-id Pine.LNX.4.44.0504110548390.13042-200000@ns.surfnonstop.com
Whole thread Raw
In response to Re: implementing asynchronous notifications  (Andras Kadinger <bandit@surfnonstop.com>)
Responses Re: implementing asynchronous notifications
List pgsql-jdbc
On Mon, 11 Apr 2005, Andras Kadinger wrote:

> I am unclear as to how to handle possible protocol errors (e.g. when what
> we end up reading from the connection is not an 'A'sync Notify).
> Theoretically, in a working connection this should not happen though.

Yes, it could: reading the PostgreSQL protocol documentation, it says
"frontends should always be prepared to accept and display NoticeResponse
messages, even when the connection is nominally idle".

So I now added code to process Error 'N'otifications as well.

Attachment

pgsql-jdbc by date:

Previous
From: Andras Kadinger
Date:
Subject: Re: implementing asynchronous notifications
Next
From: Oliver Jowett
Date:
Subject: Re: implementing asynchronous notifications