Andreas Pflug <pgadmin@pse-consulting.de> writes:
>> shouldn't it be datasize -= avail ?
>>
> AFAIR this is a really outdated K&R style of -= . Compilers *should*
> recognize this (and will throw an ambiguity error if there's no space
> after =- ), but it's better to use the 'newer' style.
Dave didn't quote it accurately. It was actually
diff -r1.209 copy.c
435c435
< datasize = -avail;
---
> datasize -= avail;
which is just plain wrong ... the net effect being that COPY IN BINARY
would fail to cope with fields crossing message packet boundaries.
regards, tom lane