From: Kris Jurka <books@ejurka.com>
To: Oliver Jowett <oliver@opencloud.com>
Cc: pgsql-jdbc@postgresql.org <pgsql-jdbc@postgresql.org>
Subject: Re: Detecting SQL_ASCII databases
Date: Mon, 20 Sep 2004 04:31:48 -0500 (EST)
Message-ID: <Pine.BSO.4.56.0409200426450.12765@leary.csoft.net> (raw)
In-Reply-To: <414CB84A.2050107@opencloud.com>
References: <414CB84A.2050107@opencloud.com>
On Sun, 19 Sep 2004, Oliver Jowett wrote:
> 8.0 backends report the server_encoding value of the database via
> ParameterStatus during startup. I'd like to use this to detect SQL_ASCII
> databases and complain loudly.
That would certainly help people who have setup their databases
incorrectly, but it is actually legal to have a setup like this as long as
you only use seven bit ascii characters. I'm not sure where I stand on
this. There are probably plenty of databases that are working fine with
the current setup. For example even using 8 bit chars in a SQL_ASCII
database, if all clients are unicode then the only problem you'll see is
the length check in something like varchar(100) failing.
Kris Jurka
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-jdbc@postgresql.org
Cc: books@ejurka.com, oliver@opencloud.com
Subject: Re: Detecting SQL_ASCII databases
In-Reply-To: <Pine.BSO.4.56.0409200426450.12765@leary.csoft.net>
References: <414CB84A.2050107@opencloud.com> <Pine.BSO.4.56.0409200426450.12765@leary.csoft.net>
* 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