Re: Making TEXT NUL-transparent - Mailing list pgsql-hackers

From Alexander Shulgin
Subject Re: Making TEXT NUL-transparent
Date
Msg-id 1322127105-sup-5764@moon
Whole thread Raw
In response to Re: Making TEXT NUL-transparent  (Florian Weimer <fweimer@bfk.de>)
Responses Re: Making TEXT NUL-transparent
List pgsql-hackers
Excerpts from Florian Weimer's message of Thu Nov 24 11:27:51 +0200 2011:
>
> > and why you don't use bytea ? Text should be correct literal.
>
> It's actually UTF-8 text, and some PostgreSQL functions are only
> available for TEXT, but not BYTEA, e.g.:
>
> bfk_int=> SELECT '\x006500'::bytea ~ 'A';
> ERROR:  operator does not exist: bytea ~ unknown

And how will those TEXT functions behave on a value with an embedded NUL?  Or is it not only about being able to
*store*NULs in a text field? 

--
Alex


pgsql-hackers by date:

Previous
From: Florian Weimer
Date:
Subject: Re: Making TEXT NUL-transparent
Next
From: Lars Kanis
Date:
Subject: Re: [PATCH] PostgreSQL fails to build with 32bit MinGW-w64