Re: character problem

From: Andrew Sullivan <ajs(at)crankycanuck(dot)ca>
To: pgsql-admin(at)postgresql(dot)org
Subject: Re: character problem
Date: 2005-10-12 21:26:42
Message-ID: 20051012212642.GA13571@phlogiston.dyndns.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

On Mon, Oct 10, 2005 at 10:27:27AM -0400, Tom Lane wrote:
> No, SQL_ASCII represents the complete absence of any encoding
> knowledge. With this database setting, changing client_encoding is a
> complete no-op. Postgres will just absorb and re-emit strings exactly
> as they were supplied originally, no matter what client_encoding is.

The documents remain pretty confusing about this, assuming I still
understand the current state of affairs (always a dangerous
assumption). The chart in
<http://developer.postgresql.org/docs/postgres/multibyte.html>, for
instance, says "SQL_ASCII" supports "ASCII". I'm not sure what to do
about this (I've noticed it before, and run into the same quandary).

One possibility is to add something like this immediately below the
chart in the page above:

---snip---

NOTE: SQL_ASCII _does not_ enforce a 7 bit restriction on insertions.
SQL_ASCII does not represent a positive claim that the database knows
all the characters to be 7 bit characters. It represents instead the
complete absence of any encoding knowledge. Inserting high-bit
characters into a database using the SQL_ASCII character set may have
unpredictable results.

---snip---

--
Andrew Sullivan | ajs(at)crankycanuck(dot)ca
I remember when computers were frustrating because they *did* exactly what
you told them to. That actually seems sort of quaint now.
--J.D. Baldwin

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Tom Lane 2005-10-12 23:02:31 Re: character problem
Previous Message Jim C. Nasby 2005-10-12 19:22:39 Re: front end application