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 1u2ZW6-002did-BU for pgsql-general@arkaria.postgresql.org; Wed, 09 Apr 2025 17:47:14 +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 1u2ZW3-005wqT-DE for pgsql-general@arkaria.postgresql.org; Wed, 09 Apr 2025 17:47:11 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1u2ZW2-005wqA-DS for pgsql-general@lists.postgresql.org; Wed, 09 Apr 2025 17:47:11 +0000 Received: from fhigh-a4-smtp.messagingengine.com ([103.168.172.155]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1u2ZVz-004NiC-2h for pgsql-general@lists.postgresql.org; Wed, 09 Apr 2025 17:47:10 +0000 Received: from phl-compute-02.internal (phl-compute-02.phl.internal [10.202.2.42]) by mailfhigh.phl.internal (Postfix) with ESMTP id E09541140105; Wed, 9 Apr 2025 13:47:05 -0400 (EDT) Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-02.internal (MEProxy); Wed, 09 Apr 2025 13:47:05 -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=1744220825; x=1744307225; bh=E9v1vr5SrOLfbTsgEDhYIjCJYu648y5DaM8T4ZFi4HE=; b= MVGON4z2SeSCVgg2HVvDmMfAS6iAKHsDb5FRKRSF/S5w9wgWh97T2JKfA3PqegHt 28uLZ01z/yC+R5Q62sMkDLXKTkM77fNC3nnybTwl3cLaMDJk7HrMj9Hz7CwDzJWu HwaRYpDDT1ZUvsREiaQRM1q2fZYoofty0LnWm5IjiofvqxZPPJ2TWpGC7QpMshUZ rr73OxxUoxgyouFdGmHmX8qP9QbmfZfUK31gSg0CCSWxCZmMqVAuJfBbHEQBNEh0 m4S8tynexBImSOBCdXX+VGUtvSqIKwjaK+tGJQVtL5zL8QPCw1Aqop1k28C1vnu3 cQ0DzGlq7RwNjGIBkg0Fcw== 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=1744220825; x= 1744307225; bh=E9v1vr5SrOLfbTsgEDhYIjCJYu648y5DaM8T4ZFi4HE=; b=I ighWECd+2unTbVsX8GNOHCqOSY5MJ2vByhHVV8NnIci1gjOlgn4Gc34bnpjEN0+8 kdSUN+uYAAO1USW4ysp0QDhsCR4r+xHbzOPMH6uTsKjDtRyi+OHUbppbMgU1ww3h eHoZU4bPL9nsre4U1JqE7d/GIuEMZ1gyBwhzF+cKnqKov9+aVxsK8Clu3atZHl4g nXKk3RJ0+ZsVQj7t05mTHO3i2+4+vc4m95Sj8EIXMGPsFEuIaWDk97HIdWgYq2ZE DXyXRPBj07KfRDEe3+eZTVxeIfr3N2qRUdK/MPwIjCs4Sn3LSk1SBx6BGkd/PeEk 0kD4+QKDC9QH4nW+kGcBg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefvddrtddtgddvtdeiieefucetufdoteggodetrf 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:47:04 -0400 (EDT) Message-ID: <08c7b49e-265a-410a-b0fd-0f4bcdc4fb02@aklaver.com> Date: Wed, 9 Apr 2025 10:47:03 -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:44 AM, Abraham, Danny wrote: > Thanks for the answers. > All the 3 lines are, of course, uncommented for the test. Then provide the actual configuration you are working with. > I am using Linux, socket is in /tmp, i see the .s files , but local > trust still does not connect. Provide: a) The connection string you are using. b) The error you get. > > 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