X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 1590152A42 for ; Thu, 21 Jul 2005 15:32:33 -0300 (ADT) 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 91958-09 for ; Thu, 21 Jul 2005 18:32:25 +0000 (GMT) Received: from frankenbride.clueinc.net (xd84b4369.ip.e-nt.net [216.75.67.105]) by svr1.postgresql.org (Postfix) with ESMTP id 079B9528DA for ; Thu, 21 Jul 2005 15:32:23 -0300 (ADT) Received: by frankenbride.clueinc.net (Postfix, from userid 16220) id 53618B982; Thu, 21 Jul 2005 14:32:24 -0400 (EDT) Date: Thu, 21 Jul 2005 14:32:24 -0400 From: Jamie Lawrence To: pgsql-sql@postgresql.org Subject: Different encodings in different DBs in same cluster Message-ID: <20050721183224.GA19811@clueinc.net> Mail-Followup-To: pgsql-sql@postgresql.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.28i Organization: clue inc X-URL: http://www.clueinc.net/ X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.05 tagged_above=0 required=5 tests=FORGED_RCVD_HELO X-Spam-Level: X-Archive-Number: 200507/211 X-Sequence-Number: 22189 Hi All, I was going through the docs for Postgres 8 for info on setting the character set (to UTF8). In the docs here: http://www.postgresql.org/docs/8.0/interactive/multibyte.html#MULTIBYTE-CHARSET-SUPPORTED I see: Since these locale settings are frozen by initdb, the apparent flexibility to use different encodings in different databases of a cluster is more theoretical than real. It is likely that these mechanisms will be revisited in future versions of PostgreSQL. One way to use multiple encodings safely is to set the locale to C or POSIX during initdb, thus disabling any real locale awareness. Does anyone know what "more theoretical than real" mean in this context? If I set the locale to C, is it going to work correctly with UTF8 encoded data? Thanks, -j -- Jamie Lawrence jal@jal.org It's strange to hear people like Gordon Liddy talking about morality. He hasn't been out of jail all that long. - Ben Bradlee