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

From Robert Haas
Subject Re: Making TEXT NUL-transparent
Date
Msg-id CA+TgmoZ6SWbNgpJ=xKAoxh=H+Z1+eGGtZcV28oCuPL5nqt+0_A@mail.gmail.com
Whole thread Raw
In response to Re: Making TEXT NUL-transparent  (Florian Weimer <fweimer@bfk.de>)
List pgsql-hackers
On Thu, Nov 24, 2011 at 4:54 AM, Florian Weimer <fweimer@bfk.de> wrote:
> By the way, I refuse the notion that UTF-8 strings with embedded NULs
> are "broken".  I can't recall any other system which enforces UTF-8
> well-formedness, but does not permit embedded NULs.

This seems like a key point.  If UTF-8 allows embedded NULs, then a
text field supposedly encoded as UTF-8 ought to allow them, too.

However, our propensity to translate between text and cstring might
make this difficult to implement in practice.

--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company


pgsql-hackers by date:

Previous
From: Robert Haas
Date:
Subject: Re: Notes on implementing URI syntax for libpq
Next
From: Alexander Shulgin
Date:
Subject: Re: Notes on implementing URI syntax for libpq