X-Original-To: pgsql-jdbc-postgresql.org@postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id 78B849F931A for ; Thu, 24 Aug 2006 14:28:40 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 52480-07 for ; Thu, 24 Aug 2006 14:28:16 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by postgresql.org (Postfix) with ESMTP id 8286A9FB24D for ; Thu, 24 Aug 2006 14:28:16 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.6/8.13.6) with ESMTP id k7OHSEYa007106; Thu, 24 Aug 2006 13:28:14 -0400 (EDT) To: Thomas Kellerer cc: pgsql-jdbc@postgresql.org Subject: Re: Small problem with special characters In-reply-to: References: <27533.1156088781@sss.pgh.pa.us> <29117.1156097748@sss.pgh.pa.us> Comments: In-reply-to Thomas Kellerer message dated "Thu, 24 Aug 2006 18:48:12 +0200" Date: Thu, 24 Aug 2006 13:28:14 -0400 Message-ID: <7105.1156440494@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.147 tagged_above=0 required=5 tests=AWL, SPF_HELO_PASS, SPF_PASS X-Spam-Level: X-Archive-Number: 200608/125 X-Sequence-Number: 15652 Thomas Kellerer writes: > Hmm. Is there a way I can find out which encoding was specified with initdb? pg_controldata will show you the locale settings that initdb saw. The encoding assigned to template0 is what initdb deduced it should use (unless you overrode it with the -E switch). > I assume I cannot create a database that would not match (or be a true > subset of) the encoding specified with initdb, right? Uh, no, we don't enforce that ... there is a school of thought that says we should, but the Japanese complain every time it comes up, because they have to deal with multiple encodings and they don't care all that much about locale settings. We probably won't be able to fix this properly until we can support per-database (or preferably even finer grain) locale settings. regards, tom lane