Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YKoto-0006hX-7M for pgsql-general@arkaria.postgresql.org; Mon, 09 Feb 2015 14:01:16 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1YKotm-0001u8-Vg for pgsql-general@arkaria.postgresql.org; Mon, 09 Feb 2015 14:01:15 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1YKotl-0001sE-HA for pgsql-general@postgresql.org; Mon, 09 Feb 2015 14:01:13 +0000 Received: from smtp08.smtpout.orange.fr ([80.12.242.130] helo=smtp.smtpout.orange.fr) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YKoth-0004Aa-GL for pgsql-general@postgresql.org; Mon, 09 Feb 2015 14:01:12 +0000 Received: from X201.home ([193.251.178.45]) by mwinf5d43 with ME id qE181p0010z9ZVd03E18Ao; Mon, 09 Feb 2015 15:01:08 +0100 X-ME-Helo: X201.home X-ME-Auth: dnYubGlzdHNAd2FuYWRvby5mcg== X-ME-Date: Mon, 09 Feb 2015 15:01:08 +0100 X-ME-IP: 193.251.178.45 Date: Mon, 9 Feb 2015 15:01:07 +0100 From: Vincent Veyron To: Oliver Cc: pgsql-general@postgresql.org Subject: Re: Change postgresql encoding Message-Id: <20150209150107.121ab2797f94cd2b8b510a12@wanadoo.fr> In-Reply-To: References: <54D7CAC4.2010509@aklaver.com> X-Mailer: Sylpheed 3.2.0 (GTK+ 2.24.10; i486-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-general Precedence: bulk Sender: pgsql-general-owner@postgresql.org On Mon, 9 Feb 2015 08:11:25 +0000 Oliver wrote: > 2015-02-09 7:52 GMT+00:00 Oliver : > > > regional configuration name not valid <> > > SQL state: 42809 > > > > I've tried es_ES.iso8859-15 and same error. > > If I set encoding to latin9, lc_collate and lc_ctype to 'C', database is > created correctly, but I'm not sure if it is ok :-? I want have database > with iso8859-15 encoding. > My system has, when I run 'locale', the next: > The locale must be installed on your system (I work with Debian, so 'dpkg-reconfigure locales'; don't know for RHEL) Here are the command I used in a similar situation: #create a latin9 database on a UTF8 cluster: createdb litigios -E LATIN9 -T template0 -l es_ES.iso885915@euro psql -c "ALTER DATABASE litigios set lc_time='es_ES.iso885915@euro'" litigios #load the data (here a latin9 encoded pg_dump) export PGCLIENTENCODING=LATIN9; psql -f /path/to/dump/file litigios -- Salutations, Vincent Veyron https://marica.fr/ Gestion des contentieux, des dossiers de sinistres assurance et des contrats pour le service juridique -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general