Re: error creating database

From: Chris Barnes <compuguruchrisbarnes(at)hotmail(dot)com>
To: <lists(at)serioustechnology(dot)com>, Postgres General Postgres General <pgsql-general(at)postgresql(dot)org>
Subject: Re: error creating database
Date: 2010-02-17 14:29:47
Message-ID: BLU149-W27F799A60DC8A798282EEAD4480@phx.gbl
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general


This depends on your OS. If you are running (linux) redhat or centos you would edit this file /etc/sysconfig/i18n

and change your locale to, for example. Save it and reboot.

There are probably ways around this when creating the database, but we install our OS with this in mind.

LANG="en_US.UTF-8"
SYSFONT="latarcyrheb-sun16"

> Date: Wed, 17 Feb 2010 09:15:56 -0500
> From: lists(at)serioustechnology(dot)com
> To: pgsql-general(at)postgresql(dot)org
> Subject: [GENERAL] error creating database
>
> I'm trying to reload a database and I'm receiving the following error:
>
> pg_restore: [archiver (db)] Error while PROCESSING TOC:
> pg_restore: [archiver (db)] Error from TOC entry 5181; 1262 45260
> DATABASE nev postgres
> pg_restore: [archiver (db)] could not execute query: ERROR: encoding
> LATIN1 does not match server's locale en_US.UTF-8
> DETAIL: The server's LC_CTYPE setting requires encoding UTF8.
> Command was:
> CREATE DATABASE nev WITH TEMPLATE = template0 ENCODING = 'LATIN1';
>
> This backup was created on another machine, so it must be that the
> enviroment on the two machines is different.
>
> Where do I look to fix this?
>
> Thanks.
>
> --
> Until later, Geoffrey
>
> "I predict future happiness for America if they can prevent
> the government from wasting the labors of the people under
> the pretense of taking care of them."
> - Thomas Jefferson
>
> --
> Sent via pgsql-general mailing list (pgsql-general(at)postgresql(dot)org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-general

_________________________________________________________________
Introducing Windows® phone.
http://go.microsoft.com/?linkid=9708122

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Peter Geoghegan 2010-02-17 14:39:19 Re: Having a plpgsql function return multiple rows that indicate its progress in a cursor like fashion
Previous Message Geoffrey 2010-02-17 14:15:56 error creating database