AW: [HACKERS] questionable codes in libpq/backend communication - Mailing list pgsql-hackers

From Andreas Zeugswetter
Subject AW: [HACKERS] questionable codes in libpq/backend communication
Date
Msg-id 01BD7D8B.86C474F0@zeugswettera.user.lan.at
Whole thread Raw
List pgsql-hackers
> My question is why the data length is "strlen(outputstr) +
> VARHDRSZ", not just strlen(outputstr).

I also think that this is a little annoying, but there seems to be no
easy way out, since all user code has a reference to VARHDRSZ.
Therefore all existing code would need to be ported. Since I don't
have lots of C code I would vote for doing this, but what would
those with lots of code say :( ?

Andreas

PS: Maybe some good macros for users would be good to hide VARHDRSZ



pgsql-hackers by date:

Previous
From: "Jose' Soares Da Silva"
Date:
Subject: Re: [HACKERS] money or dollar type
Next
From: "Thomas G. Lockhart"
Date:
Subject: Re: [HACKERS] money or dollar type