Unix Technical Forum

Re: rescue databases after upgrade?

This is a discussion on Re: rescue databases after upgrade? within the pgsql Novice forums, part of the PostgreSQL category; --> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, On Wed, 12 Jan 2005 test@fredens.net wrote: > Hi, i was running ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > pgsql Novice

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-17-2008, 08:20 PM
Devrim GUNDUZ
 
Posts: n/a
Default Re: rescue databases after upgrade?

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


Hi,

On Wed, 12 Jan 2005 test@fredens.net wrote:

> Hi, i was running sql-ledger on redhat 9, then I upgraded to fedora core 3
> and postgresql 7.4.6.
>
> Now there's an error message saying "you need to upgrade data format
> before using postgresql"
>
> On webpages like
>
> http://www.postgresql.org/docs/7.4/s...upgrading.html
>
> There's advice how to backup databases and then upgrade postgresql, but is
> the procedure the same when postgresql already has been upgraded, or is
> there a special "rescue" procedure ?


Our RPM sets have a README.rpm-dist file. It says:

"The old server subpackage must be removed first, the new package
installed, and the data restored from dump."

So... I think you should do the following:

* Backup your data directory (In case of emergency)
* Uninstall existing RPMs and install the RPMs which matches your previous
version on Red Hat 9 (7.3.8 RPMs for Fedore Core 3 are available on any
FTP mirrors of PostgreSQL).
* Start PostgreSQL service.
* Under normal conditions, you should be able to access your datas.
* Run pg_dump and get a full backup of your database.
* Remove PostgreSQL rpms.
* Remove data directory.
* Install new set of RPMs.
* Start PostgreSQL service and restore your backup to 7.4.6.

Regards,
- --
Devrim GUNDUZ
devrim~gunduz.org, devrim~PostgreSQL.org, devrim.gunduz~linux.org.tr
http://www.tdmsoft.com http://www.gunduz.org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQFB5jJvtl86P3SPfQ4RAieZAJ44T3ftdsVunk3GxnxoDS j+usehKgCggdt+
FQqk10qGPsyvps/DyV9/5yA=
=waq2
-----END PGP SIGNATURE-----

---------------------------(end of broadcast)---------------------------
TIP 7: don't forget to increase your free space map settings

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 01:41 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com