pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: markos <el96645@mail.ntua.gr>
Cc: pgsql-admin@postgresql.org
Subject: Re: psql: could not connect to server: Network is
Date: Wed, 04 Jan 2006 12:51:36 -0500
Message-ID: <3962.1136397096@sss.pgh.pa.us> (raw)
In-Reply-To: <1136396049.8613.18.camel@localhost>
References: <1136376493.9304.15.camel@localhost>
	<5e744e3d0601040434h2853fdafvc0068beae18681c2@mail.gmail.com>
	<1136396049.8613.18.camel@localhost>

markos <el96645@mail.ntua.gr> writes:
> psql -h localhost -U markulis
> psql: could not connect to server: Network is unreachable
>         Is the server running on host "localhost" and accepting
>         TCP/IP connections on port 5432?

Hm.  "Network is unreachable" means that you have got a networking
problem not a database problem.  You'll probably find that simple
commands like "ping localhost" don't work either.  The problem could
be a DNS issue --- what does "nslookup localhost" say?  If it comes
back with something reasonable, then you've got a kernel
misconfiguration issue, which I don't think I can help you with.

			regards, tom lane



view thread (6+ messages)  latest in thread

Message-ID: <3962.1136397096@sss.pgh.pa.us>
Permalink:  ../3962.1136397096@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/3962.1136397096@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: tgl@sss.pgh.pa.us, el96645@mail.ntua.gr
  Subject: Re: psql: could not connect to server: Network is
  In-Reply-To: <3962.1136397096@sss.pgh.pa.us>
  References: <1136376493.9304.15.camel@localhost> <5e744e3d0601040434h2853fdafvc0068beae18681c2@mail.gmail.com> <1136396049.8613.18.camel@localhost> <3962.1136397096@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox