From: markos <el96645@mail.ntua.gr>
To: pgsql-admin@postgresql.org
Subject: Re: psql: could not connect to server: Network is
Date: Wed, 04 Jan 2006 19:34:09 +0200
Message-ID: <1136396049.8613.18.camel@localhost> (raw)
In-Reply-To: <5e744e3d0601040434h2853fdafvc0068beae18681c2@mail.gmail.com>
References: <1136376493.9304.15.camel@localhost>
<5e744e3d0601040434h2853fdafvc0068beae18681c2@mail.gmail.com>
First of all, thanks for the swift replies.
The whole error message is actually this :
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?
the result of :
ps -aef | grep postmaster
is
postgres 8702 1 0 19:08 pts/1
00:00:00 /usr/lib/postgresql/8.0/bin/postmaster
-D /var/lib/postgresql/8.0/main -c
unix_socket_directory=/var/run/postgresql -c
config_file=/etc/postgresql/8.0/main/postgresql.conf -c
hba_file=/etc/postgresql/8.0/main/pg_hba.conf -c
ident_file=/etc/postgresql/8.0/main/pg_ident.conf
root 8811 8560 0 19:17 pts/1 00:00:00 grep postmaster
what I realized from this is that postmaster uses diferrent .conf files
than what I thought. Yet, I changed them too and nothing happened.
(The postgresql.conf on this directory had
listen_addresses = 'localhost'
commented out, but the default is localhost anyway)
the result of :
netstat -na | grep ':5432'
is nothing
I suppose that this suggests postmaster is not listening to port 5432.
But both postgresql.conf that I have on my system have the line
port = 5432
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
In-Reply-To: <1136396049.8613.18.camel@localhost>
References: <1136376493.9304.15.camel@localhost> <5e744e3d0601040434h2853fdafvc0068beae18681c2@mail.gmail.com> <1136396049.8613.18.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