Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gFGh4-0004w2-UK for pgsql-novice@arkaria.postgresql.org; Wed, 24 Oct 2018 10:47:19 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gFGh3-0001D6-C2 for pgsql-novice@arkaria.postgresql.org; Wed, 24 Oct 2018 10:47:17 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gFGh3-0001Cy-0V for pgsql-novice@lists.postgresql.org; Wed, 24 Oct 2018 10:47:17 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gFGh0-0002jo-Bo for pgsql-novice@postgresql.org; Wed, 24 Oct 2018 10:47:15 +0000 Received: from pro.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id w9OAlBlw014967; Wed, 24 Oct 2018 06:47:11 -0400 From: Tom Lane To: Ozan Kahramanogullari cc: Andrej Ricnik , Jeff Frost , pgsql-novice@postgresql.org Subject: Re: psql on Mac In-reply-to: References: <19047.1540372132@sss.pgh.pa.us> <19143.1540374143@sss.pgh.pa.us> <19247.1540376672@sss.pgh.pa.us> Comments: In-reply-to Ozan Kahramanogullari message dated "Wed, 24 Oct 2018 12:33:43 +0200" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <19343.1540378030.1@sss.pgh.pa.us> Date: Wed, 24 Oct 2018 11:47:10 +0100 Message-ID: <19344.1540378030@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Ozan Kahramanogullari writes: > Yes, sorry you are right. The file is indeed indicated to be where I > mentioned. Well, there's something really screwy going on here. A server using the pg_hba.conf file you showed us should never ask for a password at all. I'm reduced to theorizing that you have two Postgres servers running on that machine, or "localhost" isn't resolving the way you think and the "psql -h localhost" cases are connecting somewhere else. I'm not sure of the current state of affairs, but at least older versions of Apple Remote Desktop had a version of PG included ... so the idea that there's another server besides the one you know about isn't to be dismissed out-of-hand. Digging through "ps auxww" output might be informative. regards, tom lane