Networking Postgresql on Mac

General discussion of PokerTracker 3.

Moderator: Moderators

Networking Postgresql on Mac

Postby Jimbo » Fri Jun 04, 2010 6:06 am

Hi,

I'm hoping to network my db between my iMac and my Macbook - the instructions here:http://www.pokertracker.com/forums/viewtopic.php?f=45&t=4638 appear to be written for Windows, and I can't seem to find the pg_hba.conf file. Does anyone know where it might be?
Jimbo
 
Posts: 9
Joined: Fri Nov 27, 2009 5:56 am

Re: Networking Postgresql on Mac

Postby kraada » Fri Jun 04, 2010 9:20 am

It's in /Library/PostgreSQL/8.4/data/ - the other steps are pretty much the same but you will likely have permissions issues editing the file. See here under how to view/change permissions in Finder to set the folder so that you can view and edit it.
kraada
Moderator
 
Posts: 54430
Joined: Wed Mar 05, 2008 2:32 am
Location: NY

Re: Networking Postgresql on Mac

Postby Jimbo » Fri Jun 04, 2010 9:44 pm

...and if that directory doesn't exist? Should I reinstall?
Jimbo
 
Posts: 9
Joined: Fri Nov 27, 2009 5:56 am

Re: Networking Postgresql on Mac

Postby tarix » Fri Jun 04, 2010 10:02 pm

No, it exists just make sure you are looking in the right place. There is a system-wide /Library folder that is entirely different from the user-specific ~/Library folders. If you have postgres running correctly on your machine then that folder is definitely there.
tarix
Developer
 
Posts: 3760
Joined: Tue May 20, 2008 2:49 pm

Re: Networking Postgresql on Mac

Postby Jimbo » Sat Jun 05, 2010 12:09 am

Ok, thanks, I found it, followed the instructions to edit the two conf files... and now I seem to have broken my PostgreSQL server.

It either isn't running or doesn't seem to be listening. PT3 can't connect, and I can't connect through the pgAdmin console... halp?
Jimbo
 
Posts: 9
Joined: Fri Nov 27, 2009 5:56 am

Re: Networking Postgresql on Mac

Postby tarix » Sat Jun 05, 2010 1:49 am

Use Applications/Utilities/Console to watch the error messages as you restart it. Alternatively you can look at the logs in /Library/PostgreSQL 8.4/data/pg_log . (You will need a privilege elevated Finder to see into that folder just like you did to edit the config files.)
tarix
Developer
 
Posts: 3760
Joined: Tue May 20, 2008 2:49 pm

Re: Networking Postgresql on Mac

Postby Jimbo » Sat Jun 05, 2010 5:13 am

Here's the console when I launch PT3:
[ img ]
Jimbo
 
Posts: 9
Joined: Fri Nov 27, 2009 5:56 am

Re: Networking Postgresql on Mac

Postby kraada » Sat Jun 05, 2010 8:58 am

Could you also post the contents of the last file or two in the pg_log folder that Tarix mentioned? Those will be helpful.
kraada
Moderator
 
Posts: 54430
Joined: Wed Mar 05, 2008 2:32 am
Location: NY

Re: Networking Postgresql on Mac

Postby Jimbo » Sat Jun 05, 2010 10:59 am

Interesting:
[ img ]

After seeing this, I changed the permissions on the hba.conf file and PT3 immediately worked.

Thanks! Is there anything else I need to fix/be aware of?
Jimbo
 
Posts: 9
Joined: Fri Nov 27, 2009 5:56 am

Re: Networking Postgresql on Mac

Postby kraada » Sat Jun 05, 2010 11:53 am

No, that should be it.
kraada
Moderator
 
Posts: 54430
Joined: Wed Mar 05, 2008 2:32 am
Location: NY

Next

Return to General [Read Only]

Who is online

Users browsing this forum: No registered users and 14 guests