Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
Thread:
Lists: pgsql-hackerspgsql-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

pgsql-hackers by date

Next:From: Tom LaneDate: 2001-09-04 04:52:15
Subject: Re: Re: Toast,bytea, Text -blob all confusing
Previous:From: Bruce MomjianDate: 2001-09-04 04:16:53
Subject: Re: Re: Toast,bytea, Text -blob all confusing

pgsql-patches by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group