Re: non-standard escapes in string literals

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Florian Weimer <Weimer(at)CERT(dot)Uni-Stuttgart(dot)DE>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: non-standard escapes in string literals
Date: 2002-05-03 22:29:04
Message-ID: 22721.1020464944@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Florian Weimer <Weimer(at)CERT(dot)Uni-Stuttgart(dot)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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message mlw 2002-05-03 23:09:53 Re: HEADS UP: Win32/OS2/BeOS native ports
Previous Message Tom Lane 2002-05-03 22:18:43 Re: HEADS UP: Win32/OS2/BeOS native ports