pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Stefan Weiss <spaceman@foo.at>
To: sarlav kumar <sarlavk@yahoo.com>
Cc: pgsqlnovice <pgsql-novice@postgresql.org>
Cc: pgsqlperform <pgsql-performance@postgresql.org>
Subject: Re: [PERFORM] Postgres version change - pg_dump
Date: Mon, 20 Dec 2004 18:07:47 +0100
Message-ID: <41C706E3.5040302@foo.at> (raw)
In-Reply-To: <20041220144034.93247.qmail@web51306.mail.yahoo.com>
References: <20041220144034.93247.qmail@web51306.mail.yahoo.com>

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



view thread (9+ messages)  latest in thread

Message-ID: <41C706E3.5040302@foo.at>
Permalink:  ../41C706E3.5040302@foo.at/
Also on:    postgresql.org/message-id/41C706E3.5040302@foo.at

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: spaceman@foo.at, sarlavk@yahoo.com, pgsql-novice@postgresql.org
  Subject: Re: [PERFORM] Postgres version change - pg_dump
  In-Reply-To: <41C706E3.5040302@foo.at>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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