Re: Problem with data migration from 9.1 to 9.2

From: Andrzej Zawadzki <zawadaa(at)gmail(dot)com>
To: Daniel Krysiak <dextpol(at)gmail(dot)com>, pgsql-admin(at)postgresql(dot)org
Subject: Re: Problem with data migration from 9.1 to 9.2
Date: 2013-03-24 19:30:36
Message-ID: 514F545C.7020302@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

On 04.03.2013 13:53, Daniel Krysiak wrote:
> Hi,
>
> I'm using Arch Linux i686, and postgresql-old-upgrade package which
> provides /opt/pgsql-9.1/
> Here is exactly what I did (this procedure has always worked for me)
>
> su - postgres
> cd /var/lib/postgres
> mv data data-9.1
> mkdir data
> initdb --locale en_US.UTF-8 -D /var/lib/postgres/data
> pg_upgrade -b /opt/pgsql-9.1/bin/ -B /usr/bin/ -d
> /var/lib/postgres/data-9.1 -D /var/lib/postgres/data'
>
> Every step is marked "ok".
>
> This is my first migration from 9.1 to 9.2.
> The only difference from what I usually do, is that this time I needed
> to set --locale en_US.UTF-8, because of pg_upgrade error:
> lc_collate cluster values do not match: old "en_US.UTF-8", new "C"
>
I had to init new db cluster like that:

initdb -D /var/lib/pgsql/data_new -E UTF8 --lc-collate=C --lc-ctype=C
--lc-monetary=C --lc-numeric=C -U postgres

Try.

--
Andrzej Zawadzki

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Tim Watts 2013-03-25 10:39:05 Re: Postgresql 8.4 GSSAPI auth with fallback to password prompting?
Previous Message Stephen Frost 2013-03-24 18:47:10 Re: Postgresql 8.4 GSSAPI auth with fallback to password prompting?