Re: [PATCH] by request: base64 for bytea - Mailing list pgsql-hackers

From Tom Lane
Subject Re: [PATCH] by request: base64 for bytea
Date
Msg-id 9486.993350806@sss.pgh.pa.us
Whole thread Raw
In response to Re: [PATCH] by request: base64 for bytea  (Marko Kreen <marko@l-t.ee>)
Responses Re: [PATCH] by request: base64 for bytea  (Marko Kreen <marko@l-t.ee>)
List pgsql-hackers
Marko Kreen <marko@l-t.ee> writes:
> Question to -hackers: currently there is not possible to cast
> bytea to text and vice-versa.  Is this intentional or bug?

Intentional.  text and friends do not like embedded nulls.

If there were a cast it would have to be one that implies
an I/O conversion, just like any other type that contains
non-textual data.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: [PATCH] Re: Setuid functions
Next
From: Philip Warner
Date:
Subject: Re: Setuid functions