AW: [HACKERS] questionable codes in libpq/backend communication

From: Andreas Zeugswetter <andreas(dot)zeugswetter(at)telecom(dot)at>
To: "'t-ishii(at)sra(dot)co(dot)jp'" <t-ishii(at)sra(dot)co(dot)jp>
Cc: "'hackers(at)postgresql(dot)org'" <hackers(at)postgresql(dot)org>
Subject: AW: [HACKERS] questionable codes in libpq/backend communication
Date: 1998-05-12 07:51:12
Message-ID: 01BD7D8B.86C474F0@zeugswettera.user.lan.at
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

Browse pgsql-hackers by date

  From Date Subject
Next Message Tony Cowderoy 1998-05-12 08:01:57 Re: [INTERFACES] Group/Order by not in target - Was [NEW ODBC DRIVER]
Previous Message Gran Thyni 1998-05-12 06:22:23 Re: [HACKERS] mmap and MAP_ANON