Re: V3 protocol gets out of sync on messages that cause allocation failures - Mailing list pgsql-hackers

From Tom Lane
Subject Re: V3 protocol gets out of sync on messages that cause allocation failures
Date
Msg-id 9559.1098141841@sss.pgh.pa.us
Whole thread Raw
In response to Re: V3 protocol gets out of sync on messages that cause allocation failures  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: V3 protocol gets out of sync on messages that cause allocation
List pgsql-hackers
I wrote:
> Yeah.  The intent of the protocol design was that the recipient could
> skip over the correct number of bytes even if it didn't have room to
> buffer them, but the memory allocation mechanism in the backend makes
> it difficult to actually do that.  Now that we have PG_TRY, though,
> it might not be out of reach to do it right.

And indeed it wasn't.  Patch committed.
        regards, tom lane


pgsql-hackers by date:

Previous
From: David Fetter
Date:
Subject: Re: libpq and prepared statements progress for 8.0
Next
From: Tom Lane
Date:
Subject: Re: code question: storing INTO relation