Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 9B6071337B5C for ; Fri, 1 Oct 2010 10:14:16 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 23455-09 for ; Fri, 1 Oct 2010 13:14:11 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by mail.postgresql.org (Postfix) with ESMTP id 4A6501337B52 for ; Fri, 1 Oct 2010 10:14:09 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id o91DDvcC025918; Fri, 1 Oct 2010 09:13:57 -0400 (EDT) To: Anuj Pankaj cc: "Igor Neyman" , pgsql-admin@postgresql.org Subject: Re: could not connect to server: Connection refused (0x0000274D/10061) In-reply-to: <2856B55CBB911B488D04E177EEF57D3311B4FC5B@ct-beexch-1-1.cybage.com> References: <2856B55CBB911B488D04E177EEF57D3311A1504D@ct-beexch-1-1.cybage.com> <2856B55CBB911B488D04E177EEF57D3311B4FC5B@ct-beexch-1-1.cybage.com> Comments: In-reply-to Anuj Pankaj message dated "Fri, 01 Oct 2010 16:15:16 +0530" Date: Fri, 01 Oct 2010 09:13:57 -0400 Message-ID: <25917.1285938837@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-10 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201010/6 X-Sequence-Number: 35747 Anuj Pankaj writes: > What am I suppose to change in pg_hba.conf file? If you're getting "Connection refused", no amount of changing pg_hba.conf will change the result, because that's not where your problem is. This error implies the postmaster isn't listening at all on the specified port, or else there's a firewall blocking connections. Make sure that listen_addresses is set to * in postgresql.conf, and check your system packet-filtering configuration. regards, tom lane