Databases on different harddisks?

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

Databases on different harddisks?

Postby cognitio » Sat May 16, 2009 1:33 am

Hi,

is it possible to save your databases on different drives?
One on C: and the rest on D: ?

Thx.
cognitio
 
Posts: 5
Joined: Sun Apr 06, 2008 7:07 am

Re: Databases on different harddisks?

Postby kraada » Sat May 16, 2009 9:34 am

Yes, see this post for details on the best way to accomplish this for performance gains.
kraada
Moderator
 
Posts: 54431
Joined: Wed Mar 05, 2008 2:32 am
Location: NY

Re: Databases on different harddisks?

Postby cognitio » Sat May 16, 2009 4:59 pm

Hi,

i am not sure if that works for what I like to do.

Now I am saving all my databases on an external USB HD.
But sometimes I dont have this HD with me so I cant use postgre.
Because of that I like to have another Database directly on my Laptop.
If that will also work I will try to understand your posted link again ;)

Thx!
cognitio
 
Posts: 5
Joined: Sun Apr 06, 2008 7:07 am

Re: Databases on different harddisks?

Postby WhiteRider » Sun May 17, 2009 4:21 am

To work like that the easiest thing will be to copy the hand histories between computers and import them into a separate database on each computer.
If you want to start with a copy of your existing database you can back it up and restore it onto your other computer - see the Database / Postgres FAQ.
WhiteRider
Moderator
 
Posts: 54018
Joined: Sat Jan 19, 2008 7:06 pm
Location: UK

Re: Databases on different harddisks?

Postby cognitio » Sun May 17, 2009 8:34 am

The problem is the size of my database more than 100GB thats why I use an extern USB HDD.
Also a backup oder exporting hand files will take several days.

My concern was to have a smaller Database which I use for hands I played on my own on my laptop and the rest of my databases including the mining hands an my extern USB HDD.
That would be best.
cognitio
 
Posts: 5
Joined: Sun Apr 06, 2008 7:07 am

Re: Databases on different harddisks?

Postby kraada » Sun May 17, 2009 9:46 am

You can also use selective export to just export your played hands if you wanted to move those onto your laptop (see the Tutorial: Selective Export for details).
kraada
Moderator
 
Posts: 54431
Joined: Wed Mar 05, 2008 2:32 am
Location: NY

Re: Databases on different harddisks?

Postby cognitio » Fri May 22, 2009 1:53 pm

I dont use 2 different computers just 2 different HDs.

So your advice is to install postgre for a second time and export the hands I need on both?
cognitio
 
Posts: 5
Joined: Sun Apr 06, 2008 7:07 am

Re: Databases on different harddisks?

Postby kraada » Fri May 22, 2009 2:10 pm

cognitio wrote:Because of that I like to have another Database directly on my Laptop.


Now I'm confused; exactly what are you trying to accomplish?
kraada
Moderator
 
Posts: 54431
Joined: Wed Mar 05, 2008 2:32 am
Location: NY

Re: Databases on different harddisks?

Postby cognitio » Mon May 25, 2009 7:46 pm

sry for my bad english.
I only have a laptop no other computer.
But my postgre installation is on an external usb drive.
So my lone Laptop can't use postgre without this usb drive so my concern was to use postgre without this usb drive.

I think I have to do another installion of postgre on my laptop.
cognitio
 
Posts: 5
Joined: Sun Apr 06, 2008 7:07 am

Re: Databases on different harddisks?

Postby kraada » Tue May 26, 2009 10:19 am

PostgreSQL can only read from one database location at a time. In order to switch you would need to change the data_directory section of the postgresql.conf -- Start --> Programs --> PostgreSQL --> Edit postgresql.conf, then restart the PostgreSQL server.
kraada
Moderator
 
Posts: 54431
Joined: Wed Mar 05, 2008 2:32 am
Location: NY


Return to PostgreSQL [Read Only]

Who is online

Users browsing this forum: No registered users and 44 guests

cron
highfalutin