On 3 August 2016 at 15:54, Álvaro Hernández Tortosa <a...@8kdata.com> wrote: > Given that 0x00 is a perfectly legal UTF-8 character, I conclude we're > strictly non-compliant.
It's perhaps worth mentioning that 0x00 is valid ASCII too, and PostgreSQL has never stored that either. If you want to start quoting standards, there is in fact specific mention in the ANSI spec of null terminators in passing strings to host languages, so if postgresql stored NULs in that way we would end up with parameters that we couldn't pass to UDFs in a standards-compliant way. Geoff -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers