Re: Running postgresql on localhost

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: chrisstrachan(at)msn(dot)com (chrisstrachan_at_msn(dot)com)
Cc: pgsql-novice(at)postgresql(dot)org
Subject: Re: Running postgresql on localhost
Date: 2004-04-28 04:51:42
Message-ID: 23244.1083127902@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

chrisstrachan(at)msn(dot)com (chrisstrachan_at_msn.com) writes:
> I can currently log in fine to psql like so,
> #psql template1 -p 5432
> this by default logs you into the local socket but unfortuanately it
> does not work when I try
> #psql template1 -h localhost
> psql: unknown host name: localhost

You have a broken name lookup setup --- either /etc/hosts is wrong,
or you've misconfigured DNS, or quite likely both. It's not
Postgres-specific.

regards, tom lane

In response to

Browse pgsql-novice by date

  From Date Subject
Next Message Tom Lane 2004-04-28 04:55:05 Re: libpg date/timestamps format used by PQgetvalue
Previous Message joseph speigle 2004-04-28 02:36:39 Re: opening postgresql first time