Re: Making TEXT NUL-transparent

From: Alexander Shulgin <ash(at)commandprompt(dot)com>
To: Florian Weimer <fweimer(at)bfk(dot)de>
Cc: Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>, pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Making TEXT NUL-transparent
Date: 2011-11-24 11:32:17
Message-ID: 1322134279-sup-5004@moon
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers


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.

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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Pavel Stehule 2011-11-24 11:38:17 Re: Making TEXT NUL-transparent
Previous Message Lars Kanis 2011-11-24 11:29:30 Re: [PATCH] PostgreSQL fails to build with 32bit MinGW-w64