Re: upgrading from 8.3 to 9.0

From: David Morton <davidmorton(at)xtra(dot)co(dot)nz>
To: Pedro Doria Meunier <pdoria(at)netmadeira(dot)com>, "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: upgrading from 8.3 to 9.0
Date: 2011-11-18 01:14:49
Message-ID: 1321578889.31886.YahooMailNeo@web96011.mail.aue.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

I've performed a very similar upgrade including postgis upgrade at the same time, we used the following command examples ... also put some simple scripting together to dump multiple databases in parallel as downtime was critical:

Dump database data: pg_dump -Fc database --compress=1 > /mnt/dumps/database.dump

Dump global data: pg_dumpall -g > /mnt/dumps/globals..sql

Parse the global file and create a script to create new directory structure for table spaces etc (also changed paths to new mount points here)
Run the global sql script: psql -f /mnt/dumps/globals.sql postgres
Restore databases without GIS functionality: pg_restore -j 2 -C -d postgres /mnt/dumps/database.dump
Restore databases with GIS functionality (upgrade of postgis version requires this): sh /tmp/postgis_restore.pl /usr/share/postgresql/contrib/postgis-1.5/postgis.sql database_user /mnt/dumps/gisdatabase.dump -E=UTF8

Those were the basic essential steps ... there are other supporting things we did around the outside to streamline the transition, it all worked perfectly on the day.

Best advise is that if its more than a scratch environment, test test test !!

________________________________
From: Pedro Doria Meunier <pdoria(at)netmadeira(dot)com>
To: pgsql-general(at)postgresql(dot)org
Sent: Friday, 18 November 2011 12:40 AM
Subject: [GENERAL] upgrading from 8.3 to 9.0

Hi,

I'm on the verge of upgrading a server (Fedora 8 ehehe) running postgresql 8.3

It also has postgis 1.3 installed.

Thinking of using pgadmin3 to perform the backup and then restore it after
I've upgraded the server to fedora 15/16 and thus upgrading postgresql to 9.0.

I seem to remember problems with restoring from a pgadmin's .backup file in the
past... :S

Any pitfalls I should be aware of?

Btw: it's a reasonably large DB with 30mil+ rows...

Already thankful for any insight,

--
Pedro Doria Meunier
GSM: +351 91 581 88 23
Skype: pdoriam

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Steve Crawford 2011-11-18 01:25:54 Re: Huge number of INSERTs
Previous Message John R Pierce 2011-11-18 01:03:49 Re: Huge number of INSERTs