Re: V3 protocol gets out of sync on messages that cause allocation failures

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Oliver Jowett <oliver(at)opencloud(dot)com>
Cc: Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: V3 protocol gets out of sync on messages that cause allocation failures
Date: 2004-10-18 23:24:01
Message-ID: 9559.1098141841@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2004-10-18 23:37:05 Re: code question: storing INTO relation
Previous Message David Fetter 2004-10-18 23:18:25 Re: libpq and prepared statements progress for 8.0