From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Keith Fiske <keith.fiske@crunchydata.com>
To: pgsql-general@lists.postgresql.org
Subject: Re: client_encoding issue with SQL_ASCII on 8.3 to 10 upgrade
Date: Mon, 16 Apr 2018 08:37:42 -0700
Message-ID: <a3ba43ab-9a6c-2cee-2a7e-6485593b146a@aklaver.com> (raw)
In-Reply-To: <CAODZiv7K+AaJSPk=uqmNa7UQ2va7z_1d_KgVeZzEeqDNvgBn9g@mail.gmail.com>
References: <CAODZiv7K+AaJSPk=uqmNa7UQ2va7z_1d_KgVeZzEeqDNvgBn9g@mail.gmail.com>
On 04/16/2018 08:16 AM, Keith Fiske wrote:
> Running into an issue with helping a client upgrade from 8.3 to 10 (yes,
> I know, please keep the out of support comments to a minimum, thanks :).
>
> The old database was in SQL_ASCII and it needs to stay that way for now
> unfortunately. The dump and restore itself works fine, but we're now
> running into issues with some data returning encoding errors unless we
> specifically set the client_encoding value to SQL_ASCII.
>
> Looking at the 8.3 database, it has the client_encoding value set to
> UTF8 and queries seem to work fine. Is this just a bug in the old 8.3
> not enforcing encoding properly?
>
> The other thing I noticed on the 10 instance was that, while the LOCALE
> was set to SQL_ASCII, the COLLATE and CTYPE values for the restored
> databases were en_US.UTF-8. Could this be having an affect? Is there any
> way to see what these values were on the old 8.3 database? The
> pg_database catalog does not have these values stored back then.
If I remember correctly:
https://www.postgresql.org/docs/8.3/static/app-pgcontroldata.html>
> --
> Keith Fiske
> Senior Database Engineer
> Crunchy Data - http://crunchydata.com
--
Adrian Klaver
adrian.klaver@aklaver.com
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: adrian.klaver@aklaver.com, keith.fiske@crunchydata.com
Subject: Re: client_encoding issue with SQL_ASCII on 8.3 to 10 upgrade
In-Reply-To: <a3ba43ab-9a6c-2cee-2a7e-6485593b146a@aklaver.com>
References: <CAODZiv7K+AaJSPk=uqmNa7UQ2va7z_1d_KgVeZzEeqDNvgBn9g@mail.gmail.com> <a3ba43ab-9a6c-2cee-2a7e-6485593b146a@aklaver.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox