Re: SQL_ASCII vs. 7-bit ASCII encodings - Mailing list pgsql-hackers

From Tom Lane
Subject Re: SQL_ASCII vs. 7-bit ASCII encodings
Date
Msg-id 23387.1115992767@sss.pgh.pa.us
Whole thread Raw
In response to Re: SQL_ASCII vs. 7-bit ASCII encodings  (Alvaro Herrera <alvherre@surnet.cl>)
Responses Re: SQL_ASCII vs. 7-bit ASCII encodings  (Alvaro Herrera <alvherre@surnet.cl>)
Re: SQL_ASCII vs. 7-bit ASCII encodings  (Oliver Jowett <oliver@opencloud.com>)
List pgsql-hackers
Alvaro Herrera <alvherre@surnet.cl> writes:
> The problem is that a single application coming from a single
> environment is happy with a 8-bit-unchecked encoding, but as soon as
> they develop a second application using a different environment, which
> uses a different encoding, they start seeing invalid data pop up.

[ shrug... ]  The evidence at hand says that many people never get to
that point.  For instance, a particular database may never be accessed
through anything except JDBC, and so all the incoming data will be utf8
anyway.

My feeling about it is that we already made significant changes in 8.0
--- it won't default to SQL_ASCII unless your locale is "C", which to me
is a pretty strong indication that you are not very concerned about
encodings.  We should wait and see what field experience is like with
that, rather than insisting on anything as anal-retentive as disallowing
8-bit data in SQL_ASCII.  Doing that might have technical purity but I
think it will create as many problems as it prevents.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: SQL_ASCII vs. 7-bit ASCII encodings
Next
From: Alvaro Herrera
Date:
Subject: Re: SQL_ASCII vs. 7-bit ASCII encodings