Re: Bytea/Base64 encoders for libpq - interested? - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Bytea/Base64 encoders for libpq - interested?
Date
Msg-id 24827.999578705@sss.pgh.pa.us
Whole thread Raw
In response to Re: Bytea/Base64 encoders for libpq - interested?  ("Joe Conway" <joseph.conway@home.com>)
List pgsql-hackers
"Joe Conway" <joseph.conway@home.com> writes:
> I was thinking it would be nice to have a
> way to cast bytea into text and vice-versa,

How will you handle a null byte in bytea data?  Transforming it directly
into an embedded null in a text object is NOT an acceptable answer,
because too many of the text functions will misbehave on such data.
        regards, tom lane


pgsql-hackers by date:

Previous
From: "Joe Conway"
Date:
Subject: Re: Re: Toast,bytea, Text -blob all confusing
Next
From: Tom Lane
Date:
Subject: Re: Re: Toast,bytea, Text -blob all confusing