From: | Joe Conway <mail(at)joeconway(dot)com> |
---|---|
To: | David Wheeler <david(at)wheeler(dot)net> |
Cc: | Christopher Kings-Lynne <chriskl(at)familyhealth(dot)com(dot)au>, pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: 7.4 Wishlist |
Date: | 2002-12-02 03:36:45 |
Message-ID: | 3DEAD54D.5080303@joeconway.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-advocacy pgsql-general pgsql-hackers |
David Wheeler wrote:
> My understanding is that the nul character is legal in a byte sequence,
> but if it's not properly escaped, it'll be parsed as the end of the
> statement. Unfortunately, I think that it's a very tough problem to solve.
No question wrt '\0' bytes -- they would have to be escaped when casting from
bytea to text.
The harder issue is that there are apparently many other multiple byte
sequences that, while valid in an ASCII encoding, are not valid in one or more
multibyte encodings. See this thread:
http://archives.postgresql.org/pgsql-hackers/2002-04/msg00236.php
This is why currently all "non printable characters" are escaped (which I
think is all bytes > 127). Text on the other hand is already known to be valid
for a particular encoding, so it doesn't need escaping.
I'm not sure what happens when the backend encoding and client encoding don't
match -- I'd guess there is some probability of invalid byte sequences in that
case too.
Joe
From | Date | Subject | |
---|---|---|---|
Next Message | Lee Kindness | 2002-12-02 10:54:10 | 7.4 Wishlist |
Previous Message | Chris Phelan | 2002-12-02 01:43:48 | Re: The list of translators |
From | Date | Subject | |
---|---|---|---|
Next Message | Madhavi | 2002-12-02 03:38:10 | Is there a way to Send attachements with email uing pgmail? |
Previous Message | Eric B.Ridge | 2002-12-02 02:51:04 | Re: Command editing with psql and OS X |
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2002-12-02 05:37:29 | Re: toast table growing indefinitely? Known problems? |
Previous Message | Philip Warner | 2002-12-02 03:23:32 | toast table growing indefinitely? Known problems? |