Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1u2ZYH-002eGO-Gd for pgsql-general@arkaria.postgresql.org; Wed, 09 Apr 2025 17:49:29 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1u2ZYF-005zqD-U7 for pgsql-general@arkaria.postgresql.org; Wed, 09 Apr 2025 17:49:28 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1u2ZYF-005zq5-IZ for pgsql-general@lists.postgresql.org; Wed, 09 Apr 2025 17:49:27 +0000 Received: from fout-a1-smtp.messagingengine.com ([103.168.172.144]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1u2ZYE-003uw7-07 for pgsql-general@lists.postgresql.org; Wed, 09 Apr 2025 17:49:26 +0000 Received: from phl-compute-01.internal (phl-compute-01.phl.internal [10.202.2.41]) by mailfout.phl.internal (Postfix) with ESMTP id F25D013801B8; Wed, 9 Apr 2025 13:49:24 -0400 (EDT) Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-01.internal (MEProxy); Wed, 09 Apr 2025 13:49:24 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= cc:cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm1; t=1744220964; x=1744307364; bh=d+4+wKd2VOcsG/A6rsXrkxHIwg96F/dPBLgEbxHCipE=; b= F07/9Pm8+VJ041qfVM5ZO+F21T+BeBfiEIZIAerPpy/5Z1AhTSf3JR+tC+H+PFDN kNTWIoZLCinca4HdFckLEXtk8ItzvTbpeY//XSvAhu4+oDGqJ94n2aljxOpiV+8U gzudH3RMsov/kGnzwZjYfkECQoEnJSo9Vb3/sfOq2yDWMXz8jRW/myisVsGsxcjZ jhlAEl2OSsPbEw0oQXLUpapP3vBJz8SDn+nGdnXk6OQ6RmHLX+zN73iRg9uKYlaM 0ip0zuV6TdJgeBO2W6JGOa3JPEOyCLeqCV+kxgmnvfSBA0g6C5Vbv39ieK8dZXhP PxXeHi4yplG7vglIlIcMLA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t=1744220964; x= 1744307364; bh=d+4+wKd2VOcsG/A6rsXrkxHIwg96F/dPBLgEbxHCipE=; b=Z RvilinzWs1ytKfiyghi4gRDM+tzzLi0KvCL1T5pS8YLgdBh6759frD3LcGSUrc5L YeUseEOsB9wfyXu2VJs2eAU7dBdhE4sVYZiU6+FavX4WJFTqYwelHrBCOKP9rsrF DAVEY0izeSx9a1Rx5IRvU7OEslcqSU/r/17xrikM/k1fRSlhAl928nOcg+qURTpm p8b0NUmRdYB1ZReCBrrw3ljOdv6gayc3EPayVMT1Cklz5fZllm5gSF8Vs5WYOYcP TMMpcQ6o4yyAPxqUEcBtkYas9d4/dV4YRVaOSjuO6a6u9/2viYId0xIHS0G5YYEJ WUg+JlhIp1PChMMdT5unw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefvddrtddtgddvtdeiieehucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggv pdfurfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpih gvnhhtshculddquddttddmnecujfgurhepkfffgggfuffvvehfhfgjtgfgsehtkeertddt vdejnecuhfhrohhmpeetughrihgrnhcumfhlrghvvghruceorggurhhirghnrdhklhgrvh gvrhesrghklhgrvhgvrhdrtghomheqnecuggftrfgrthhtvghrnhepfeegfeeiuedtgffg teeggfehkeejheetieeliefgteeikeejvdeiveeigfehvedtnecuvehluhhsthgvrhfuih iivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprggurhhirghnrdhklhgrvhgvrhes rghklhgrvhgvrhdrtghomhdpnhgspghrtghpthhtohepfedpmhhouggvpehsmhhtphhouh htpdhrtghpthhtohepuggrnhhnhigprggsrhgrhhgrmhessghmtgdrtghomhdprhgtphht thhopehfohhlrghrthgvsehpvghophhlvggtrghllhdrtghomhdprhgtphhtthhopehpgh hsqhhlqdhgvghnvghrrghlsehlihhsthhsrdhpohhsthhgrhgvshhqlhdrohhrgh X-ME-Proxy: Feedback-ID: i76984098:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 9 Apr 2025 13:49:24 -0400 (EDT) Message-ID: <8e9d16f4-9a8d-4917-9320-d48c7996e4d1@aklaver.com> Date: Wed, 9 Apr 2025 10:49:23 -0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [EXTERNAL] Re: Cannot connect local with ttrust (pg_upgrade assumes it) To: "Abraham, Danny" , Francisco Olarte Cc: "pgsql-general@lists.postgresql.org" References: Content-Language: en-US From: Adrian Klaver In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 4/9/25 10:45 AM, Abraham, Danny wrote: > Failure eans going down the hba list and asking for the password. In pg_hba.conf first match wins, sounds like you have password auth line before the trust lines. You need to provide the complete pg_hba.conf auth lines you are working with. > > > Sent from Workspace ONE Boxer > > On Apr 9, 2025 20:04, Francisco Olarte wrote: > On Wed, 9 Apr 2025 at 18:20, Abraham, Danny wrote: >> Asking for help with inability to connect local using trust >> Fail >> #local   all         all                               trust >> #local   all   dbauser   peer >> OK >> #host    all          all         127.0.0.1/32          trust > > How are you connecting? Your symptoms matches confusing local with > TCP/IP to localhost. They are not the same thing. > Also, are you on windows? ( which does not have unix sockets ). > > local > This record matches connection attempts using Unix-domain sockets. > Without a record of this type, Unix-domain socket connections are > disallowed. > host > This record matches connection attempts made using TCP/IP. host > records match SSL or non-SSL connection attempts as well as GSSAPI > encrypted or non-GSSAPI encrypted connection attempts. > > On a unix host psql -h localhost will use the host line, psql -h > /socket/path will go to the local one, and no -h defaults to socket. > On a windows host it default to tcp/ip to localhost. > > Francisco Olarte. -- Adrian Klaver adrian.klaver@aklaver.com