pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Koczan <pjkoczan@gmail.com>
To: Tommy Gildseth <tommy.gildseth@usit.uio.no>
Cc: Campbell, Lance <lance@uiuc.edu>
Cc: pgsql-admin@postgresql.org
Subject: Re: Load DB - Conversion from 8.1.4 to 8.2.4
Date: Tue, 26 Jun 2007 19:14:23 -0500
Message-ID: <4681ABDF.70305@gmail.com> (raw)
In-Reply-To: <467ECEE2.9070701@usit.uio.no>
References: <A3AC4FA47DC0B1458C3E5396E685E63302395E82@SAB-DC1.sab.uiuc.edu>
	<467ECEE2.9070701@usit.uio.no>

Tommy Gildseth wrote:
> Campbell, Lance wrote:
>>
>> I will be converting from PostgreSQL 8.1.4 to 8.2.4. Is it OK to do 
>> the following command in order to load the new database after install?
>>
>> pg_dump -h /host1/ –p 1234 /dbname/ | psql -h /host1 –p 56789/ 
>> /dbname///
>>
>> Remember that port 1234 is PostgreSQL 8.1.4 and port 5678 is 
>> PostgreSQL 8.2.4.
>>
>
> Should be fine, as long as you ensure that the pg_dump you use, is the 
> one from your 8.2.4 installation, and not the 8.1.4 version.
>
>
Two quick addendums:

- pg_dump doesn't dump large objects. You should use the following if 
you use large objects.

pg_dump -h /host1/ –p 1234 -Fc /dbname/ | pg_restore -h /host1 –p 56789/ 
/dbname///

- There might be some other issues with the upgrade. I've run into 
permissions issues, data types that were checked more strictly, and a 
couple broken primary keys in my days as an admin. I'm not saying you'll 
run into these, but if you can, do a dry run of a dump/restore so you 
can solve the problems up front.

Peter



view thread (5+ messages)  latest in thread

Message-ID: <4681ABDF.70305@gmail.com>
Permalink:  ../4681ABDF.70305@gmail.com/
Also on:    postgresql.org/message-id/4681ABDF.70305@gmail.com

 · 

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-admin@postgresql.org
  Cc: pjkoczan@gmail.com, tommy.gildseth@usit.uio.no, lance@uiuc.edu
  Subject: Re: Load DB - Conversion from 8.1.4 to 8.2.4
  In-Reply-To: <4681ABDF.70305@gmail.com>

* 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