[Qgis-user] Question about Postgis connection

Niccolo Rigacci niccolo at rigacci.org
Tue Jan 4 22:03:50 PST 2011


On Wed, Jan 05, 2011 at 09:01:44AM +1100, Matt Boyd wrote:
>
> When my location changes and I'm on the same subnet as the postgresql
> machine and ssh port forwarding slows things down or I want to
> transfer the project file I open up the QGIS project file in a text
> editor and do a search and replace for "localhost".

I suggest you to use always a name in the project (like 
my.postgres.net) and define it into /etc/hosts:

#192.168.2.6	my.postgres.net
127.0.0.1	my.postgres.net

When you switch environment, just uncomment the required line.

-- 
Niccolo Rigacci
Firenze - Italy



More information about the Qgis-user mailing list