Received: from maia.hub.org (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id 6FAB763317D for ; Mon, 29 Mar 2010 05:52:19 -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 37988-02-5 for ; Mon, 29 Mar 2010 08:51:59 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mail-iw0-f187.google.com (mail-iw0-f187.google.com [209.85.223.187]) by mail.postgresql.org (Postfix) with ESMTP id 99F3B633AF8 for ; Mon, 29 Mar 2010 05:51:56 -0300 (ADT) Received: by iwn17 with SMTP id 17so6367685iwn.19 for ; Mon, 29 Mar 2010 01:51:55 -0700 (PDT) Received: by 10.231.153.1 with SMTP id i1mr2426405ibw.35.1269852715412; Mon, 29 Mar 2010 01:51:55 -0700 (PDT) Received: from [192.168.1.254] ([121.246.205.20]) by mx.google.com with ESMTPS id co35sm3893113ibb.14.2010.03.29.01.51.53 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 29 Mar 2010 01:51:54 -0700 (PDT) Message-ID: <4BB06A24.3030208@itech7.com> Date: Mon, 29 Mar 2010 14:21:48 +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: Guillaume Lelarge CC: pgsql-admin@postgresql.org Subject: Re: Socket & TCP connections References: <4BAF8DA9.2010000@itech7.com> <4BB00A9C.2040007@itech7.com> <4BB054D6.3040806@lelarge.info> In-Reply-To: <4BB054D6.3040806@lelarge.info> 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=-2.014 tagged_above=-10 required=5 tests=AWL=0.585, BAYES_00=-2.599 X-Spam-Level: X-Archive-Number: 201003/219 X-Sequence-Number: 34018 On 03/29/2010 12:50 PM, Guillaume Lelarge wrote: > Le 29/03/2010 04:04, Nilesh Govindarajan a écrit : >> 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 :? >> > > You probably forgot to reload the configuration after modifying it, and > then someone reloaded it or restarted the server, and PostgreSQL was > able to use the new configuration. > > Yeah may be. But I remember issuing killall -HUP postmaster after every change. -- Nilesh Govindarajan Site & Server Administrator www.itech7.com मेरा भारत महान ! मम भारत: महत्तम भवतु !