Skip site navigation (1) Skip section navigation (2)

Re: [PERFORM] Postgres version change - pg_dump

From: Stefan Weiss <spaceman(at)foo(dot)at>
To: sarlav kumar <sarlavk(at)yahoo(dot)com>
Cc: pgsqlnovice <pgsql-novice(at)postgresql(dot)org>,pgsqlperform <pgsql-performance(at)postgresql(dot)org>
Subject: Re: [PERFORM] Postgres version change - pg_dump
Date: 2004-12-20 17:07:47
Message-ID: 41C706E3.5040302@foo.at (view raw or flat)
Thread:
Lists: pgsql-novicepgsql-performance
sarlav kumar wrote, On 2004-12-20 15:40:
> I would like to do a pg_dump on the test database, and restore it in
> the new database on Postgres 7.4.6. I would like to know if there
> would be any problem due to the postgres version/OS change. If so,
> could someone tell me what precautions I can take to avoid any
> problems?

Apart from using the pg_dump from 7.4.6 (see Bruno's answer), you should
take care to use the same locale in the new database cluster. I have had
problems in the past with unique constraints that could not be restored
due to different locale settings. See here:

  http://www.spinics.net/lists/pgsql/msg05363.html

In my case it was not enough to create the database with a different
encoding, I had to re-initdb the whole cluster :-/


cheers,
stefan

In response to

Responses

pgsql-novice by date

Next:From: sarlav kumarDate: 2004-12-20 17:30:33
Subject: Re: Postgres version change - pg_dump
Previous:From: Kretschmer AndreasDate: 2004-12-20 15:51:11
Subject: Re: pg_dumpall with oids/blobs

pgsql-performance by date

Next:From: sarlav kumarDate: 2004-12-20 17:30:33
Subject: Re: Postgres version change - pg_dump
Previous:From: Bruno Wolff IIIDate: 2004-12-20 15:47:49
Subject: Re: Postgres version change - pg_dump

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group