If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > PostgreSQL > Moving the data from PostgreSQL 8.4 to 9.0

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-09-10, 14:14
leehagen leehagen is offline
Registered User
 
Join Date: Oct 2010
Posts: 1
Moving the data from PostgreSQL 8.4 to 9.0

PostgreSQL 8.4 . was fine, for the past few months. But Today it starts telling me it fails to establish connection to 127.0.0.1.

I havent install anything recently, except the normal windows updates. The only thing i did was i am back in England.

MY Laptop is Windows 7 and i use it for holdem manager.

And it seems like the only way is to uninstall the whole PostgreSQL 8.4 and install the 9.0 instead.
Here the problem occurs, all the hand history is gone... but luckily when i uninstall PostgreSQL 8.4 , i kept the PostgresSQL/8.4/data in my computer.
So is there anyway, i could input the data back into the new PostgreSQL?
Many thanks for your help.
Reply With Quote
  #2 (permalink)  
Old 10-10-10, 17:17
shammat shammat is offline
Registered User
 
Join Date: Nov 2003
Posts: 2,408
Quote:
Originally Posted by leehagen View Post
PostgreSQL 8.4 . was fine, for the past few months. But Today it starts telling me it fails to establish connection to 127.0.0.1.
Is the Postgres service starting at all?
Did you see any error messages in the Postgres log file?
Is there any message in the Windows Event log?

Quote:
MY Laptop is Windows 7 and i use it for holdem manager.
Whatever that holdem manager is...

Quote:
And it seems like the only way is to uninstall the whole PostgreSQL 8.4 and install the 9.0 instead.
Not true.
If it was working before and then "suddenly" stopped working, you need to find out what happened and why Postgres didn't start anymore. Analyzing log files is the first step when finding the reason for a problem. Simply deleting everything will leave you no chance whatsoever to find out what went wrong.


Quote:
Here the problem occurs, all the hand history is gone... but luckily when i uninstall PostgreSQL 8.4 , i kept the PostgresSQL/8.4/data in my computer.
Bad idea.
You cannot migrate to 9.0 unless you have a running 8.4.
So now you'll never find out why Postgres stopped working in the first place and you cannot upgrade to 9.0 because you don't have a running 8.4


Quote:
So is there anyway, i could input the data back into the new PostgreSQL?
Many thanks for your help.
1) Make a backup of your current data directory
2) Make sure you have a backup of your data directory
3) Install Postgres 8.4 again overwriting the current data directory (did you make sure you have a backup?)
4) Shut down the Postgres service
5) Make sure the Postgres service has stopped
6) Check that Postgres is not running
7) Copy the backup of your data directory to the original location (make sure Postgres is not running when you do that)
8) Start the postgres service again
Reply With Quote
  #3 (permalink)  
Old 10-12-10, 03:55
barett36paula barett36paula is offline
Registered User
 
Join Date: Oct 2010
Posts: 1
Moving the data from PostgreSQL 8.4 to 9.0

Thanks to you! i got solution to my problem....
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On