X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 86A11329E66 for ; Mon, 20 Sep 2004 10:31:54 +0100 (BST) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 65350-08 for ; Mon, 20 Sep 2004 09:31:48 +0000 (GMT) Received: from mail63.csoft.net (leary3.csoft.net [63.111.22.74]) by svr1.postgresql.org (Postfix) with SMTP id 2CF11329E63 for ; Mon, 20 Sep 2004 10:31:49 +0100 (BST) Received: (qmail 2452 invoked by uid 1112); 20 Sep 2004 09:31:48 -0000 Date: Mon, 20 Sep 2004 04:31:48 -0500 (EST) From: Kris Jurka X-X-Sender: books@leary.csoft.net To: Oliver Jowett Cc: "pgsql-jdbc@postgresql.org" Subject: Re: Detecting SQL_ASCII databases In-Reply-To: <414CB84A.2050107@opencloud.com> Message-ID: References: <414CB84A.2050107@opencloud.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200409/123 X-Sequence-Number: 11013 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