pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: markos <el96645@mail.ntua.gr>
To: pgsql-admin@postgresql.org
Subject: psql: could not connect to server: Network is unreachable
Date: Wed, 04 Jan 2006 14:08:13 +0200
Message-ID: <1136376493.9304.15.camel@localhost> (raw)

        Is the server running on host "localhost" and accepting
        TCP/IP connections on port 5432?

Now, I'm really confused because I used to have postgre 7 installed on
my Debian without any serious problems with the configuration. Right
now, I'm using Ubuntu Breezy and postgre 8.

I have used the sample .conf files to set my own
at /var/lib/postgres/data

the only two un-commented lines at the postgresql.conf are :

listen_addresses = 'localhost'  # what IP interface(s) to listen on;
                                # defaults to localhost, '*' = any
port = 5432

And my pg_hba.conf is :

# TYPE  DATABASE    USER        CIDR-ADDRESS          METHOD
local   all         all                               trust
# The same using local loopback TCP/IP connections.
#
# TYPE  DATABASE    USER        CIDR-ADDRESS          METHOD
host    all         all         127.0.0.1/32          trust
host    all         all         ::1/128               trust

The command I issue to get this reply is :
psql -h localhost -U markulis

Also, I don't know if it is of any importance, but if I issue the
command while online, it simply hangs. I have also experienced the same
problem while trying to connect from pgadmin3.

I really need some help on this, because I have to present my diploma
work in short time and the system doesn't work.




view thread (6+ messages)  latest in thread

Message-ID: <1136376493.9304.15.camel@localhost>
Permalink:  ../1136376493.9304.15.camel@localhost/
Also on:    postgresql.org/message-id/1136376493.9304.15.camel@localhost

 · 

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: el96645@mail.ntua.gr
  Subject: Re: psql: could not connect to server: Network is unreachable
  In-Reply-To: <1136376493.9304.15.camel@localhost>
  References: <1136376493.9304.15.camel@localhost>

* 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