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

Re: Making TEXT NUL-transparent

From: Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>
To: Florian Weimer <fweimer(at)bfk(dot)de>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Making TEXT NUL-transparent
Date: 2011-11-24 09:21:21
Message-ID: CAFj8pRDpQTDEofA43YsxHM_EgFeJBUm2aBrm4pYhEu9LcaQKMQ@mail.gmail.com (view raw or flat)
Thread:
Lists: pgsql-hackers
Hello

2011/11/24 Florian Weimer <fweimer(at)bfk(dot)de>:
> Occasionally, we get bitten by embedded NUL bytes in TEXT values.  We
> take care of generating proper UTF-8, but this additional restriction
> sometimes slips by.  It would be really helpful if PostgreSQL could
> store such TEXT fields as-is (at least if they are computed internally,
> or come from query parameters).
>

and why you don't use bytea ? Text should be correct literal.

Regards

Pavel Stehule

> I haven't even looked how difficult it would be to implement this.  Do
> you think it's worth the trouble?
>
> --
> Florian Weimer                <fweimer(at)bfk(dot)de>
> BFK edv-consulting GmbH       http://www.bfk.de/
> Kriegsstraße 100              tel: +49-721-96201-1
> D-76133 Karlsruhe             fax: +49-721-96201-99
>
> --
> Sent via pgsql-hackers mailing list (pgsql-hackers(at)postgresql(dot)org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-hackers
>

In response to

Responses

pgsql-hackers by date

Next:From: Boszormenyi ZoltanDate: 2011-11-24 09:24:09
Subject: Re: [PATCH] PostgreSQL fails to build with 32bit MinGW-w64
Previous:From: Florian WeimerDate: 2011-11-24 09:06:43
Subject: Making TEXT NUL-transparent

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