X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id 74FCA9DC93B for ; Wed, 4 Jan 2006 08:34:42 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 04530-06 for ; Wed, 4 Jan 2006 08:34:45 -0400 (AST) X-Greylist: domain auto-whitelisted by SQLgrey- Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.201]) by postgresql.org (Postfix) with ESMTP id 2B8AC9DC89C for ; Wed, 4 Jan 2006 08:34:39 -0400 (AST) Received: by zproxy.gmail.com with SMTP id s1so2345862nze for ; Wed, 04 Jan 2006 04:34:43 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=pA9K1s2LquedQRo5/fw3tozmwuRFdrEKMuAir67CAV82lu0iTWtTVn9/Kjg68ywSU7rX0yLoAIwB2MDMVbT1B/YkptURN3Y/U0DPL+NRv20MqeFMMvtYfuVsIpoaf2efI88+MWiUp/NAbHfiHZ9G6SUtyKus1oTLnfyIUvQFxPE= Received: by 10.64.203.5 with SMTP id a5mr788438qbg; Wed, 04 Jan 2006 04:34:43 -0800 (PST) Received: by 10.64.210.15 with HTTP; Wed, 4 Jan 2006 04:34:43 -0800 (PST) Message-ID: <5e744e3d0601040434h2853fdafvc0068beae18681c2@mail.gmail.com> Date: Wed, 4 Jan 2006 18:04:43 +0530 From: Pandurangan R S To: markos Subject: Re: psql: could not connect to server: Network is unreachable Cc: pgsql-admin@postgresql.org In-Reply-To: <1136376493.9304.15.camel@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <1136376493.9304.15.camel@localhost> X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.176 required=5 tests=[AWL=-0.100, MAILTO_TO_SPAM_ADDR=0.276] X-Spam-Score: 0.176 X-Spam-Level: X-Archive-Number: 200601/42 X-Sequence-Number: 20130 Hi, can you check if postmaster is running on your machine using the following command ps -aef | grep postmaster Also check check if postgres is listening on port 5432 using netstat -na | grep ':5432' On 1/4/06, markos wrote: > 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 =3D 'localhost' # what IP interface(s) to listen on; > # defaults to localhost, '*' =3D any > port =3D 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. > > > ---------------------------(end of broadcast)--------------------------- > TIP 9: In versions below 8.0, the planner will ignore your desire to > choose an index scan if your joining column's datatypes do not > match >