Re: [HACKERS] Proposal for async support in libpq - Mailing list pgsql-hackers

From Peter T Mount
Subject Re: [HACKERS] Proposal for async support in libpq
Date
Msg-id Pine.LNX.3.95.980418112653.7910A-100000@maidast.demon.co.uk
Whole thread Raw
In response to Re: [HACKERS] Proposal for async support in libpq  (Bruce Momjian <maillist@candle.pha.pa.us>)
Responses Re: [HACKERS] Proposal for async support in libpq
List pgsql-hackers
On Sat, 18 Apr 1998, Bruce Momjian wrote:

> In backend/libpq/pqcomm.c, I see pg_sendoob() which sends out-of-band
> data FROM the backend TO the client, but it is not called from anywhere.
>
> This could be a method of signaling that a notification was pending, and
> sending out-of-band data FROm the client TO the backend could be used
> for cancelling a query.
>
> out-of-band data causes a convenient signal to the process on the other
> end, which can easily be used to handle these cases.

Just a quick question: If you have an OOB packet sent to the backend, how
would we handle the case where a row is being sent to the backend, but the
OOB packet comes in the middle of it?

It may sound like a silly question, but I'm thinking if a client is on the
end of a slow network connection, then the packet containing the row could
become fragmented, and the OOB packet could get in the way.

Anyhow, I'm trying to find out how to implement OOB in Java. I know it's
there, as I've seen it in the past. Just can't find it at the moment.

--
Peter T Mount  petermount@earthling.net or pmount@maidast.demon.co.uk
Main Homepage: http://www.demon.co.uk/finder
Work Homepage: http://www.maidstone.gov.uk Work EMail: peter@maidstone.gov.uk


pgsql-hackers by date:

Previous
From: Maarten Boekhold
Date:
Subject: Re: [HACKERS] Proposal for async support in libpq
Next
From: Peter T Mount
Date:
Subject: Re: [HACKERS] lock failed and buffer leak