I used psql a lot and generally work directly on my development server. Now
sometimes I am on another machine, but when I try to acces the database with
something like this:
psql -d dbname -U username -h 192.168.1.2
I get the following message: "psql: unknown host name: 192.168.1.2"
I am a bit puzzled, because I have no such problem e.g. from a Perl script:
$conn = Pg::connectdb("dbname=dname user=username hostaddr=192.168.1.2
port=5432") or die "Can't open: $!\n";
psql seems to expect a host name rather than an IP address and I haven't
found any other option in the psql doc. Any way out of this?
--------
François
Home page: http://www.monpetitcoin.com/
"A fox is a wolf who sends flowers"