Re: Remote connection shows localhost databases

From: Jeff Adams <Jeff(dot)Adams(at)noaa(dot)gov>
To: 'Guillaume Lelarge' <guillaume(at)lelarge(dot)info>
Cc: 'Richard Huxton' <dev(at)archonet(dot)com>, pgsql-general(at)postgresql(dot)org
Subject: Re: Remote connection shows localhost databases
Date: 2011-09-16 12:55:07
Message-ID: 000601cc746f$df89e590$9e9db0b0$%Adams@noaa.gov
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Thanks Guillaume and Richard. I removed the server from the host name field and entered only the IP address. I then edited my pg_hba.conf, adding the IP address and it worked! I appreciate all of your help.

Jeff

>
> Thanks for the response Richard. I have tried to connect via pgAdminIII.
> When I try to connect to the remote machine, I enter \\<server>\<ip_address>
> into the host name field. What I found was it didn't matter what I entered
> into the hostname field (I put in random strings to test), it always brought
> up the databases on the localhost....
>

In pgAdmin, you have a Name field (which is a description, so free
text), and you have a Host field. The host field should contain the
socket complete path, or the host name, or the ip address. With this,
you're able to connect to any PostgreSQL server, as long as their
pg_hba.conf file allows it.

--
Guillaume
http://blog.guillaume.lelarge.info
http://www.dalibo.com

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Merlin Moncure 2011-09-16 12:55:35 Re: multi-master replication (Was: Has Pg 9.1.0 been released today?)
Previous Message Darin Perusich 2011-09-16 12:39:28 Re: forcing table ownership