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

From Pavel Stehule
Subject Re: Making TEXT NUL-transparent
Date
Msg-id CAFj8pRDkviY61oBujrEd1a20g3wntQv+b5ThM7YJnZu--4xRtw@mail.gmail.com
Whole thread Raw
In response to Re: Making TEXT NUL-transparent  (Alexander Shulgin <ash@commandprompt.com>)
List pgsql-hackers
2011/11/24 Alexander Shulgin <ash@commandprompt.com>:
>
> Excerpts from Florian Weimer's message of Thu Nov 24 12:59:09 +0200 2011:
>>
>> > I have a different question. What is reason for embedded NULs inside
>> > strings?
>>
>> The source system does not enforce that constraint, so from time to
>> time, such data slips through.  I don't know why it's there in the first
>> place, and I have no control over the original data source.  Usually,
>> it's okay to silently strip NUL bytes; it's just a bit awkward.
>

the source should be buggy application that has broken replace or
concat of strings.

Pavel

> Strip?  Like this: "loss\0less" => "lossless"?  That would be awkward for sure.
>


pgsql-hackers by date:

Previous
From: Alexander Shulgin
Date:
Subject: Re: Making TEXT NUL-transparent
Next
From: Robert Haas
Date:
Subject: Re: Notes on implementing URI syntax for libpq