Postgres question

PostgreSQL is the database server used to store information. Do you have a question or are you having problem with PostgreSQL? If so, post them here.

Moderator: Moderators

Postgres question

Postby MikeTribby » Mon May 19, 2008 5:19 pm

Hi. I have limited space on the hard drive C. And the postgres database uses a lot of space since I datamine a lot. How can I move the database or postgres and everything on another partition? Because I have like 3 GB free on drive C and the windows is working really slow. Also if I continue importing I will run out of space on drive C. Thanks in advance.
MikeTribby
 
Posts: 9
Joined: Thu May 08, 2008 1:20 am

Re: Postgres question

Postby prajna » Tue May 20, 2008 1:13 pm

Okay, to keep your data intact, go to the pgAdmin III tool located under start -> programs -> postgresql -> pgAdmin III. There are two window panes you see. Double click the "postgresql database server" and if prompted, enter the password for the server. Now, you should see below that a tree entry that says "databases". Click on that. Select your database in the list, right click -> backup... Name it, leave everything else the same, and let the server backup the data.

Once backed up, you can uninstall postgresql. Make sure you don't delete the backup file you just made!!! Once you uninstall postgresql, install it in the new location. Once installed, go back into pgAdmin III and log back into your server. Once done, right click on databases, new... Name the database (no spaces in the name), and click okay. Once created, right click on that database and select restore... Select the file you backed up your original database to, and then click okay (leave everthing else as is).

This may seem long and drawn out, but it guarantees you will have your data intact and working properly on the new partition.

~ Thomas
[Pokertracker support]
prajna
 
Posts: 734
Joined: Thu Apr 03, 2008 1:58 pm


Return to PostgreSQL [Read Only]

Who is online

Users browsing this forum: No registered users and 56 guests

cron