Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gNIq2-0004IB-7k for pgsql-bugs@arkaria.postgresql.org; Thu, 15 Nov 2018 14:41:46 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gNIq0-000560-7V for pgsql-bugs@arkaria.postgresql.org; Thu, 15 Nov 2018 14:41:44 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gNIpz-00053J-Te for pgsql-bugs@lists.postgresql.org; Thu, 15 Nov 2018 14:41:44 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gNIpx-00044n-Na for pgsql-bugs@lists.postgresql.org; Thu, 15 Nov 2018 14:41:42 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id wAFEfbI3015482; Thu, 15 Nov 2018 09:41:37 -0500 From: Tom Lane To: Yogesh cc: david.g.johnston@gmail.com, pgsql-bugs@lists.postgresql.org Subject: Re: BUG #15508: Not able to connect irrespective of valid entries in pg_hba.conf In-reply-to: References: <15508-4f247f02568dbf5f@postgresql.org> Comments: In-reply-to Yogesh message dated "Thu, 15 Nov 2018 12:45:30 +0530" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <15480.1542292897.1@sss.pgh.pa.us> Date: Thu, 15 Nov 2018 09:41:37 -0500 Message-ID: <15481.1542292897@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Yogesh writes: > Thanks for your response, David. I did restart postgres server (in fact > more than 10 times). Well, the three possibilities are (1) you edited the wrong file, (2) you did not restart/reload the server, and (3) you put the wrong info into the file. We seem to have eliminated (1) and (2) so that leaves (3). What is the pg_hba.conf entry that you are expecting to match this connection request? You may have to show us the un-obfuscated server error message, too, if you want an accurate diagnosis of why it's not matching the connection. regards, tom lane