Re: non-standard escapes in string literals - Mailing list pgsql-hackers

From Tom Lane
Subject Re: non-standard escapes in string literals
Date
Msg-id 22721.1020464944@sss.pgh.pa.us
Whole thread Raw
In response to Re: non-standard escapes in string literals  (Florian Weimer <Weimer@CERT.Uni-Stuttgart.DE>)
List pgsql-hackers
Florian Weimer <Weimer@CERT.Uni-Stuttgart.DE> writes:
> BTW, what about embedded NUL characters in text strings? ;-)

There's approximately zero chance of that happening in the foreseeable
future.  Since null-terminated strings are the API for both the parser
and all datatype I/O routines, there'd have to be a lot of code changed
to support this.  To take just one example: strcoll() uses
null-terminated strings, therefore we'd not be able to support
locale-aware text comparisons unless we write our own replacement for
the entire locale library.  (Which we might do someday, but it's not
a trivial task.)

The amount of pain involved seems to far outweigh the gain...
        regards, tom lane


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: HEADS UP: Win32/OS2/BeOS native ports
Next
From: mlw
Date:
Subject: Re: HEADS UP: Win32/OS2/BeOS native ports