Received: from maia.hub.org (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id E186163311B for ; Mon, 29 Mar 2010 04:21:05 -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 24322-02 for ; Mon, 29 Mar 2010 07:20:51 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sd-17937.dedibox.fr (sd-17937.dedibox.fr [88.191.100.74]) by mail.postgresql.org (Postfix) with ESMTP id 4F5C7633029 for ; Mon, 29 Mar 2010 04:20:55 -0300 (ADT) Received: from [192.168.0.7] (uni14-1-82-233-223-216.fbx.proxad.net [82.233.223.216]) by sd-17937.dedibox.fr (Postfix) with ESMTPA id 346943B8F5; Mon, 29 Mar 2010 09:20:54 +0200 (CEST) Message-ID: <4BB054D6.3040806@lelarge.info> Date: Mon, 29 Mar 2010 09:20:54 +0200 From: Guillaume Lelarge User-Agent: Mozilla/5.0 (X11; U; Linux i686; fr; rv:1.9.1.8) Gecko/20100227 Thunderbird/3.0.3 MIME-Version: 1.0 To: Nilesh Govindarajan CC: pgsql-admin@postgresql.org Subject: Re: Socket & TCP connections References: <4BAF8DA9.2010000@itech7.com> <4BB00A9C.2040007@itech7.com> In-Reply-To: <4BB00A9C.2040007@itech7.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.949 tagged_above=-10 required=5 tests=AWL=0.650, BAYES_00=-2.599 X-Spam-Level: X-Archive-Number: 201003/218 X-Sequence-Number: 34017 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. -- Guillaume. http://www.postgresqlfr.org http://dalibo.com