Re: Load DB - Conversion from 8.1.4 to 8.2.4

From: "Campbell, Lance" <lance(at)uiuc(dot)edu>
To: "Peter Koczan" <pjkoczan(at)gmail(dot)com>, "Tommy Gildseth" <tommy(dot)gildseth(at)usit(dot)uio(dot)no>
Cc: <pgsql-admin(at)postgresql(dot)org>
Subject: Re: Load DB - Conversion from 8.1.4 to 8.2.4
Date: 2007-06-27 02:27:39
Message-ID: A3AC4FA47DC0B1458C3E5396E685E63302395E9B@SAB-DC1.sab.uiuc.edu
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

I was thinking about upgrading from 8.1.4 to 8.1.9. Then I will do the
upgrade from 8.1.9 to 8.2.4.

Is this a better approach?

Thanks,

Lance Campbell
Project Manager/Software Architect
Web Services at Public Affairs
University of Illinois
217.333.0382
http://webservices.uiuc.edu

-----Original Message-----
From: Peter Koczan [mailto:pjkoczan(at)gmail(dot)com]
Sent: Tuesday, June 26, 2007 7:14 PM
To: Tommy Gildseth
Cc: Campbell, Lance; pgsql-admin(at)postgresql(dot)org
Subject: Re: [ADMIN] Load DB - Conversion from 8.1.4 to 8.2.4

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

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Vishal Arora 2007-06-27 03:55:22 Re: postgres benchmarking
Previous Message Mutua K 2007-06-27 01:20:09 Re: An I/O error occured while sending to the backend