Re: DBMS upgrade and backups

From: Vibhor Kumar <vibhor(dot)kumar(at)enterprisedb(dot)com>
To: Alexander Pyhalov <alp(at)rsu(dot)ru>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: DBMS upgrade and backups
Date: 2011-03-14 14:38:07
Message-ID: F0923138-9B81-48A2-BB38-D305CFB0EF97@enterprisedb.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general


On Mar 14, 2011, at 7:36 PM, Alexander Pyhalov wrote:

> Am I right that on PostgreSQL upgrade to new major version (e.g. from 9.0 to 9.1) I'll loose my backups (base backups and wal files will be useless)?

Yes, those Backups would not be valid.

> So to go to past after DB upgrade I had to install old version(9.0), recover data and then upgrade DBMS software...

You won't be able to use the Data Directory of New Version for PG 9.0, you have to use your old backup.

> What is the preferred way to deal with this issue?

I would recommend to take pg_dump backup with Filesystem Backup before any upgrade.

Can you explain, why are you upgrading to 9.1? Currently there is no Prduction release of 9.1.

Thanks & Regards,
Vibhor Kumar
EnterpriseDB Corporation
The Enterprise PostgreSQL Company
vibhor(dot)kumar(at)enterprisedb(dot)com
Blog:http://vibhork.blogspot.com

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Jo 2011-03-14 14:48:03 Re: Postgres 8.3 vs. 8.4 - Query plans and performance
Previous Message Alexander Pyhalov 2011-03-14 14:06:03 DBMS upgrade and backups