Re: PQgetlength vs. octet_length() - Mailing list pgsql-hackers

From Albe Laurenz
Subject Re: PQgetlength vs. octet_length()
Date
Msg-id D960CB61B694CF459DCFB4B0128514C203937ED0@exadv11.host.magwien.gv.at
Whole thread Raw
In response to Re: PQgetlength vs. octet_length()  (Greg Stark <gsstark@mit.edu>)
List pgsql-hackers
Greg Stark wrote:
> If you use binary encoding then you don't have to deal with that.
> Though I seem to recall there is still a gotcha you have to worry
> about if there are nul bytes in your datum. I don't recall exactly
> what that meant you had to do though.

As far as I know, it only means that you shouldn't use strcpy, strlen
and friends on a binary string.

Yours,
Laurenz Albe


pgsql-hackers by date:

Previous
From: Fujii Masao
Date:
Subject: Re: [BUGS] BUG #4961: pg_standby.exe crashes with no args
Next
From: KaiGai Kohei
Date:
Subject: Why ACL_EXECUTE is checked on FindConversion()?