Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VzrFj-0002bZ-81 for pgsql-general@arkaria.postgresql.org; Sun, 05 Jan 2014 17:12:43 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1VzrFi-0007Ld-E6 for pgsql-general@arkaria.postgresql.org; Sun, 05 Jan 2014 17:12:42 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VzrFh-0007LT-0q for pgsql-general@postgresql.org; Sun, 05 Jan 2014 17:12:41 +0000 Received: from mail-pa0-x232.google.com ([2607:f8b0:400e:c03::232]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VzrFa-0004oS-5j for pgsql-general@postgresql.org; Sun, 05 Jan 2014 17:12:40 +0000 Received: by mail-pa0-f50.google.com with SMTP id kp14so15714488pab.23 for ; Sun, 05 Jan 2014 09:12:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=rdFMcxa4KAJE4f5c29fRhSb6+49znblc+mT6An3Evuk=; b=Fxr0Y67u+qtfTJkhR5WGESXqGOcWDSh/8c5Dl0ZT7p1dZeZfprTcYvSZXuqesXVWRB khP/7iE4spxX8XH1CteeFEbZy5g4bMSIrJb8ZPh3w2bizBzZH59tYwmDQOKTtkl2QpQR HQD4KW5tM+9fQR3M3A2C8VkE77lYOWrF5dkxUJOsbzNUMCwzPT1I6wuPMVBuhrJ1wJ7I IbtZwLFYYlRHEk9b3Lwow8txHaUzXN3kv6Ihx3k7wNLgrEGalqmgcjAAXPvgkieQyJSS JP8HvNbTOTCEugwaxoBYVs2b3gcXBvLFpPaUkYZaG/msHKj2MUOfnL7gpbhn2tNM6RtY rUmA== X-Received: by 10.68.180.66 with SMTP id dm2mr20345180pbc.143.1388941952666; Sun, 05 Jan 2014 09:12:32 -0800 (PST) Received: from panda.site (174-21-132-251.tukw.qwest.net. [174.21.132.251]) by mx.google.com with ESMTPSA id da3sm67842339pbc.30.2014.01.05.09.12.31 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 05 Jan 2014 09:12:31 -0800 (PST) Message-ID: <52C9927E.9080507@gmail.com> Date: Sun, 05 Jan 2014 09:12:30 -0800 From: Adrian Klaver User-Agent: Mozilla/5.0 (X11; Linux i686; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 MIME-Version: 1.0 To: Jayadevan M CC: Tom Lane , dinesh kumar , "pgsql-general@postgresql.org" Subject: Re: authentication failure References: <52C6C8EE.7060207@gmail.com> <9602.1388761635@sss.pgh.pa.us> <52C8252C.5050602@gmail.com> <52C97B38.8010402@gmail.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -2.0 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-general Precedence: bulk Sender: pgsql-general-owner@postgresql.org On 01/05/2014 07:47 AM, Jayadevan M wrote: > With md5 > psql > psql: FATAL: password authentication failed for user "postgres" > > with trust > psql -h localhost > psql (9.3.2) > Type "help" for help. > > back to md5 > psql -h localhost > psql: FATAL: password authentication failed for user "postgres" Just noticed while testing here: aklaver@panda:~> psql -d test -U aklaver -h localhost psql: FATAL: password authentication failed for user "aklaver" password retrieved from file "/home/aklaver/.pgpass" So psql tells you when you are getting password from pgpass. > > But... > > find / -name .pgpass > > > $ env | grep PG > PGPORT=1234 > PGUSER=postgres > PGHOST=localhost Hmm, I am going to have to think about this. > > > > -- Adrian Klaver adrian.klaver@gmail.com -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general