Howto upgrade PostgreSQL from version 7.X to 8.X on Cpanel server

Posted by HostsVault | Posted in How-To's | Posted on 30-04-2009-05-2008

0

You may face this situation where you need to migrate to a newer hardware/software server then find that your previous PostgreSQL version database is not compatible to the new 8.X version probably you have 7.X version here are the steps to migrate to this new version:

First on old server :

su - postgres
pg_dumpall > /tmp/db.out
exit

Then move the /tmp/db.out to the new server  on /tmp/db.out

On new server :

su - postgres
psql -f /tmp/db.out template1
exit

Once back as root :

service postgresql restart

 

 

Remember to erase or move /tmp/db.out  to somewhere not public , hope this helps anyone.

VN:F [1.9.3_1094]
Rating: 4.0/10 (4 votes cast)
VN:F [1.9.3_1094]
Rating: 0 (from 0 votes)
Howto upgrade PostgreSQL from version 7.X to 8.X on Cpanel server, 4.0 out of 10 based on 4 ratings
Share and Enjoy:
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • Furl
  • Slashdot
  • StumbleUpon
  • Technorati

Write a comment