One database two computers

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

One database two computers

Postby DK115 » Fri Feb 15, 2008 11:44 am

FYI

An important issue for me: Using on database within your home network and still put data in that database from two computers: is it possible with PT3!
Answer: Yes; I managed to do that.

Q for support: Can you use your the same license PT3 use on different computers (say 2 or 3) for your own use?



If you need to know how to configure ... ask.
DK115
 
Posts: 34
Joined: Fri Feb 08, 2008 6:20 am

Re: One database two computers

Postby Josh » Fri Feb 15, 2008 11:51 am

The PT3 license will be similar to the current PT and PA Hud licenses. You'll be allowed to use PT3 on any two computers that you own.
Josh
Site Admin
 
Posts: 6222
Joined: Sat Dec 08, 2007 6:03 pm

Re: One database two computers

Postby DK115 » Fri Feb 15, 2008 12:02 pm

Great!

Looking forward to the test HUD integration. With PT2/HUD was this two PC/one DB a hell of a job ...
DK115
 
Posts: 34
Joined: Fri Feb 08, 2008 6:20 am

Re: One database two computers

Postby MMark516 » Sat Feb 16, 2008 5:27 pm

ok, since i have pt3 on 2 computers, how do i tell it that theres a database on one? so the other can just read it...or whatever, lol
MMark516
 
Posts: 36
Joined: Wed Jan 30, 2008 6:32 pm

Re: One database two computers

Postby APerfect10 » Sat Feb 16, 2008 7:56 pm

When you add the database into the other computer, you will need to enter the IP address for the other computer, in the host field.

Best regards,

Derek
APerfect10
Site Admin
 
Posts: 4465
Joined: Sat Dec 08, 2007 6:03 pm

Re: One database two computers

Postby DK115 » Sun Feb 17, 2008 5:12 am

Situation

Compter 1: PT3 & Postgres Database; make sure that Computer 1 has a static IP adress.
Computer 2 (laptop?) only PT3

Step one:

You need to say to postgres that users from other computers can log in:

On Compter 1 add a line in pg_hba.conf file
like this

[i0g0]host all all 192.168.2.3 255.255.255.255 [/i0g0] trust
{where 192.168.2.3 is the ip adress of the laptop}.

If your using DHCP and you do not know the exact IP of the laptop the line will look like this

[i0g0]host all all 192.168.2.0 255.255.255.[/i0g0]0 trust
{where 192.168.2.0 is your network ...}

Step 2:

Then change the line in the postgressql.conf
[i0g0]listen_addresses = 'localhost' into listen_addresses = '*' [/i0g0]

Go to services on computer 1 and restart the PostgresSQL service

Step 3:

Go to the firewall confuration on computer 1 and make an execption for port 5432 (if it is not there) for the internal network.

Step 4:
Then start on computer 2 PT3 and give in the IP adress of Computer one where localhost is displayed; the DB on Computer 1 should be found ...
DK115
 
Posts: 34
Joined: Fri Feb 08, 2008 6:20 am

Re: One database two computers

Postby JThomsen » Sun Feb 24, 2008 12:57 pm

I assume it is still possible to import hands while playing on computer 2 (the one without postgresql)?
How will this affect CPU and HDD usage?
JThomsen
 
Posts: 3
Joined: Sun Feb 24, 2008 12:30 pm

Re: One database two computers

Postby APerfect10 » Sun Feb 24, 2008 1:25 pm

[quote="JThomsen"id9]I assume it is still possible to import hands while playing on computer 2 (the one without postgresql)?
How will this affect CPU and HDD usage?[/quoteid9]

It will lower both cpu and HDD usage on the non-PostgreSQL machine and increase it on the PostgreSQL machine. It is a good way to spread the load across two separate computers.

-Derek
APerfect10
Site Admin
 
Posts: 4465
Joined: Sat Dec 08, 2007 6:03 pm

Re: One database two computers

Postby craftart2003 » Sun Mar 09, 2008 5:28 pm

I just wanted to say thank you for the information in this post. Very ingenious and helpful! Great Job!
craftart2003
 
Posts: 6
Joined: Sun Mar 09, 2008 5:16 pm

Re: One database two computers

Postby bozlax » Tue Mar 11, 2008 2:52 pm

Here's an issue I'm seeing: I've got a Linux workstation running Postgres and hosting my PT database; I'm still on PT2, running it under wine on the Linux box, and WinXP on the laptop; if PT is running on the Linux box when I fire it up on the laptop, the copy on the laptop just hangs (hourglass cursor) and the only way to release it is through Task Manager. If I start it on the laptop first, then on the Linux box, no issue.

Any ideas? It's not a huge deal, I just sometimes have to walk ALL THE WAY ACROSS THE HOUSE to shut down PT on the workstation when I'm going to play on the laptop.
bozlax
 
Posts: 5
Joined: Tue Mar 11, 2008 2:30 pm

Next

Return to PostgreSQL [Read Only]

Who is online

Users browsing this forum: No registered users and 19 guests

cron