From: Tom Lane <tgl@sss.pgh.pa.us>
To: Thomas Kellerer <spam_eater@gmx.net>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Small problem with special characters
Date: Thu, 24 Aug 2006 13:28:14 -0400
Message-ID: <7105.1156440494@sss.pgh.pa.us> (raw)
In-Reply-To: <eckl8c$5a2$1@sea.gmane.org>
References: <ec9jsb$v5e$1@sea.gmane.org>
<27533.1156088781@sss.pgh.pa.us>
<eca2o4$4k7$1@sea.gmane.org>
<Pine.BSO.4.63.0608201140120.30732@leary2.csoft.net>
<eca5ro$clo$1@sea.gmane.org>
<29117.1156097748@sss.pgh.pa.us>
<eckl8c$5a2$1@sea.gmane.org>
Thomas Kellerer <spam_eater@gmx.net> 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
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: tgl@sss.pgh.pa.us, spam_eater@gmx.net
Subject: Re: Small problem with special characters
In-Reply-To: <7105.1156440494@sss.pgh.pa.us>
References: <ec9jsb$v5e$1@sea.gmane.org> <27533.1156088781@sss.pgh.pa.us> <eca2o4$4k7$1@sea.gmane.org> <Pine.BSO.4.63.0608201140120.30732@leary2.csoft.net> <eca5ro$clo$1@sea.gmane.org> <29117.1156097748@sss.pgh.pa.us> <eckl8c$5a2$1@sea.gmane.org> <7105.1156440494@sss.pgh.pa.us>
* 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