From: Tom Lane <tgl@sss.pgh.pa.us>
To: Gary Wong <gary_wong@dot.ca.gov>
Cc: pgsql-bugs@postgresql.org
Subject: Re: Postgresql 9.0.4 initdb bug on solaris 64 bit
Date: Wed, 15 Jun 2011 10:05:17 -0400
Message-ID: <27318.1308146717@sss.pgh.pa.us> (raw)
In-Reply-To: <OFE22CA91B.DA74C059-ON882578AF.005B215A-882578AF.005E266C@dot.ca.gov>
References: <OFE22CA91B.DA74C059-ON882578AF.005B215A-882578AF.005E266C@dot.ca.gov>
Gary Wong <gary_wong@dot.ca.gov> writes:
> [Environment under in the postgres account]
> $ env
> LC_MONETARY=en_US.ISO8859-15
> LC_TIME=en_US.ISO8859-15
> LC_MESSAGES=C
> LC_CTYPE=en_US.ISO8859-1
> LC_COLLATE=en_US.ISO8859-15
> LC_NUMERIC=en_US.ISO8859-15
> [Message I get when I run initdb]
> $ initdb -D /usr/local/pgsql/data
> The files belonging to this database system will be owned by user
> "postgres".
> This user must also own the server process.
> The database cluster will be initialized with locales
> COLLATE: en_US.ISO8859-15
> CTYPE: en_US.ISO8859-1
> MESSAGES: C
> MONETARY: en_US.ISO8859-15
> NUMERIC: en_US.ISO8859-15
> TIME: en_US.ISO8859-15
> The default database encoding has accordingly been set to LATIN1.
> initdb: encoding mismatch
> The encoding you selected (LATIN1) and the encoding that the
> selected locale uses (LATIN9) do not match. This would lead to
> misbehavior in various character string processing functions.
> Rerun initdb and either do not specify an encoding explicitly,
> or choose a matching combination.
This is not a bug. You've got inconsistent environment settings,
and the error message seems reasonably appropriate for that.
Try making LC_CTYPE match the rest.
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-bugs@postgresql.org
Cc: tgl@sss.pgh.pa.us, gary_wong@dot.ca.gov
Subject: Re: Postgresql 9.0.4 initdb bug on solaris 64 bit
In-Reply-To: <27318.1308146717@sss.pgh.pa.us>
References: <OFE22CA91B.DA74C059-ON882578AF.005B215A-882578AF.005E266C@dot.ca.gov> <27318.1308146717@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