Re: 7.4 Wishlist

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Joe Conway <mail(at)joeconway(dot)com>
Cc: David Wheeler <david(at)wheeler(dot)net>, 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 18:09:46
Message-ID: 200212021809.gB2I9k711367@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-advocacy pgsql-general pgsql-hackers

Joe Conway wrote:
> 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.

I think there is some idea of changing the frontend/backend protocol to
prevent the need for escaping > \127 characters. I believe it is
currently only required when the frontend/backend protocol have
different encodings.

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073

In response to

Browse pgsql-advocacy by date

  From Date Subject
Next Message Dan Langille 2002-12-02 19:10:54 "Business of Open Source Software" conference
Previous Message Shridhar Daithankar 2002-12-02 15:52:48 Re: Slashdot article on PostgreSQL 7.3

Browse pgsql-general by date

  From Date Subject
Next Message Marc G. Fournier 2002-12-02 18:11:58 Re: mailing list archives very very slow?
Previous Message Andy Kriger 2002-12-02 18:05:20 timing queries?

Browse pgsql-hackers by date

  From Date Subject
Next Message Fernando Nasser 2002-12-02 18:30:04 Re: ALTER TABLE schema SCHEMA TO new_schema?
Previous Message Joe Conway 2002-12-02 17:50:03 protecting prosrc (was Re: USAGE on schema allowed by default?)