Received: from maia.hub.org (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id 226B86321DC for ; Sun, 28 Mar 2010 23:10:08 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.208.211]) (amavisd-maia, port 10024) with ESMTP id 59418-01 for ; Mon, 29 Mar 2010 02:09:47 +0000 (UTC) X-Greylist: delayed 00:05:23.648084 by SQLgrey-1.7.6 Received: from mail-gy0-f174.google.com (mail-gy0-f174.google.com [209.85.160.174]) by mail.postgresql.org (Postfix) with ESMTP id 7578E632822 for ; Sun, 28 Mar 2010 23:09:43 -0300 (ADT) Received: by gyg13 with SMTP id 13so1186080gyg.19 for ; Sun, 28 Mar 2010 19:09:41 -0700 (PDT) Received: by 10.101.180.6 with SMTP id h6mr2343752anp.65.1269828258104; Sun, 28 Mar 2010 19:04:18 -0700 (PDT) Received: from [192.168.1.254] ([121.246.205.20]) by mx.google.com with ESMTPS id cm22sm3485008ibb.11.2010.03.28.19.04.16 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 28 Mar 2010 19:04:17 -0700 (PDT) Message-ID: <4BB00A9C.2040007@itech7.com> Date: Mon, 29 Mar 2010 07:34:12 +0530 From: Nilesh Govindarajan User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.8) Gecko/20100301 Shredder/3.0.3 MIME-Version: 1.0 To: pgsql-admin@postgresql.org Subject: Re: Socket & TCP connections References: <4BAF8DA9.2010000@itech7.com> In-Reply-To: <4BAF8DA9.2010000@itech7.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.287 tagged_above=-10 required=5 tests=AWL=-0.177, BAYES_05=-1.11 X-Spam-Level: X-Archive-Number: 201003/217 X-Sequence-Number: 34016 Hi, it seems to be working now. Can somebody explain to me how ? See this pg_hba.conf - # "local" is for Unix domain socket connections only local all root trust local all all md5 # IPv4 local connections: #host all root 127.0.0.1/32 trust #host all root ::1/128 trust host all all 127.0.0.1/32 md5 host all all ::1/128 md5 Its the same code I think which I wrote previously. But now it asks password when connected through TCP and doesn't when connected directly as psql -d postgres PLZ EXPLAIN !! I'm in a big confusion :? -- Nilesh Govindarajan Site & Server Administrator www.itech7.com मेरा भारत महान ! मम भारत: महत्तम भवतु !