Re: Bytea/Base64 encoders for libpq - interested?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Joe Conway" <joseph(dot)conway(at)home(dot)com>
Cc: "Bruce Momjian" <pgman(at)candle(dot)pha(dot)pa(dot)us>, "Karel Zak" <zakkr(at)zf(dot)jcu(dot)cz>, "Joerg Hessdoerfer" <Joerg(dot)Hessdoerfer(at)sea-gmbh(dot)com>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: Bytea/Base64 encoders for libpq - interested?
Date: 2001-09-04 04:45:05
Message-ID: 24827.999578705@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-patches

"Joe Conway" <joseph(dot)conway(at)home(dot)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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2001-09-04 04:52:15 Re: Re: Toast,bytea, Text -blob all confusing
Previous Message Bruce Momjian 2001-09-04 04:16:53 Re: Re: Toast,bytea, Text -blob all confusing

Browse pgsql-patches by date

  From Date Subject
Next Message Barry Lind 2001-09-04 04:46:13 Re: Read transactions don't work on 7.0.x db's
Previous Message Bruce Momjian 2001-09-04 04:12:35 Re: Bytea/Base64 encoders for libpq - interested?