pg.ddx.io pgsql-admin@postgresql.org mailing list archive
help / color / mirror / Atom feedProblem with data migration from 9.1 to 9.2
2+ messages / 2 participants
[nested] [flat]
* Problem with data migration from 9.1 to 9.2
@ 2013-03-04 12:53 Daniel Krysiak <dextpol@gmail.com>
2013-03-24 19:30 ` Re: Problem with data migration from 9.1 to 9.2 Andrzej Zawadzki <zawadaa@gmail.com>
0 siblings, 1 reply; 2+ messages in thread
From: Daniel Krysiak @ 2013-03-04 12:53 UTC (permalink / raw)
To: pgsql-admin
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"
Now I can connect, but database looks empty, like Postgre couldn't see
my schemas and users. pg_upgrade did "something" because:
du -s data*
34876 data
34068 data-9.1
Moving back and run 9.1 to use pg_dumpall is quite impossible, or at
least vary difficult with Arch Linux, so I would really appreciate some
other suggestions.
--
Daniel Krysiak
--
Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: Problem with data migration from 9.1 to 9.2
2013-03-04 12:53 Problem with data migration from 9.1 to 9.2 Daniel Krysiak <dextpol@gmail.com>
@ 2013-03-24 19:30 ` Andrzej Zawadzki <zawadaa@gmail.com>
0 siblings, 0 replies; 2+ messages in thread
From: Andrzej Zawadzki @ 2013-03-24 19:30 UTC (permalink / raw)
To: Daniel Krysiak <dextpol@gmail.com>; 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
--
Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2013-03-24 19:30 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2013-03-04 12:53 Problem with data migration from 9.1 to 9.2 Daniel Krysiak <dextpol@gmail.com>
2013-03-24 19:30 ` Andrzej Zawadzki <zawadaa@gmail.com>
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