Re: [BUGS] BUG #4007: chr(0) doesn't work anymore

From: Bruce Momjian <bruce(at)momjian(dot)us>
To: Andrew Dunstan <andrew(at)dunslane(dot)net>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Steve Clark <sclark(at)netwolves(dot)com>, PostgreSQL-patches <pgsql-patches(at)postgresql(dot)org>
Subject: Re: [BUGS] BUG #4007: chr(0) doesn't work anymore
Date: 2008-03-03 18:09:10
Message-ID: 200803031809.m23I9AQ21809@momjian.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs pgsql-patches

BAndrew Dunstan wrote:
>
>
> Bruce Momjian wrote:
> > Tom Lane wrote:
> >
> >> Steve Clark <sclark(at)netwolves(dot)com> writes:
> >>
> >>> I'm not sure I understand what you mean about TEXT being null-safe.
> >>> What are the issues, and why was
> >>> it supported for years and now abruptly changed.
> >>>
> >> It never was supported, we are simply plugging a hole that let you
> >> create a text value that would be likely to malfunction in subsequent
> >> use.
> >>
> >
> > Seems we never documented that chr(0) is not supported. I have applied
> > the following doc patch to CVS HEAD and 8.3.X.
> >
> >
> > The NULL (0) character is not
> > allowed because text data types cannot reliably store such bytes.
> >
> >
>
>
>
> "Reliably" is arguably misleading here.

Agreed. "Reliably" word removed.

--
Bruce Momjian <bruce(at)momjian(dot)us> http://momjian.us
EnterpriseDB http://postgres.enterprisedb.com

+ If your life is a hard drive, Christ can be your backup. +

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Alex Hunsaker 2008-03-03 19:07:46 Re: BUG #3973: pg_dump using inherited tables do not always restore
Previous Message Andrew Dunstan 2008-03-03 18:02:57 Re: [BUGS] BUG #4007: chr(0) doesn't work anymore

Browse pgsql-patches by date

  From Date Subject
Next Message Bruce Momjian 2008-03-03 18:49:39 Re: Logging conflicted queries on deadlocks
Previous Message Andrew Dunstan 2008-03-03 18:02:57 Re: [BUGS] BUG #4007: chr(0) doesn't work anymore