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 1u2YqZ-002TrT-DQ for pgsql-general@arkaria.postgresql.org; Wed, 09 Apr 2025 17:04:19 +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 1u2YqX-005VtZ-Ju for pgsql-general@arkaria.postgresql.org; Wed, 09 Apr 2025 17:04:17 +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 1u2YqX-005VtR-5R for pgsql-general@lists.postgresql.org; Wed, 09 Apr 2025 17:04:17 +0000 Received: from mail-ed1-x532.google.com ([2a00:1450:4864:20::532]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1u2YqT-004NFs-34 for pgsql-general@lists.postgresql.org; Wed, 09 Apr 2025 17:04:16 +0000 Received: by mail-ed1-x532.google.com with SMTP id 4fb4d7f45d1cf-5e614da8615so1985529a12.1 for ; Wed, 09 Apr 2025 10:04:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=peoplecall-com.20230601.gappssmtp.com; s=20230601; t=1744218253; x=1744823053; darn=lists.postgresql.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=Sh3Z7rBA6dK7SjZAP+h70fg0VLzyXCBjPezFk9sYo4w=; b=TSG5h5fVZZUnlMNBEJzLsbpFsGc/oPR2TVxKkhrG7I6lJLhoMK2TTkq3eTnkMND+CM bsmJF7ohMk6tS5SAjNSTN2bF14KEmHf96vL9VqUyRWFgsRkb++9jpHGke8xROSzZ6QJl jy+N+MSXL03rD4LnvUZmeqngucK9Hrv0iI4Jifg6QYLTtRlpwDf7kuZraOaUEA1DIGG9 sWl9BCAyBlBXzzR7QD9MNGmZNflo+bWME9ZWtUMYMmWBizgFB5Ql+wSqVNzB681tmToL KRRx9Ertf6FOHI6aKi0C0znW2bjcmOeJzyE8yXJ/Hq+pD5NGnAmErxcIzJh+7zZAuVvn I5+A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1744218253; x=1744823053; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=Sh3Z7rBA6dK7SjZAP+h70fg0VLzyXCBjPezFk9sYo4w=; b=bjcMa7n+R0tWp4Dcev3bPUU4fSO9BkF7Lr0rndp9nA6nYuaiDy/NIMNWjG2IL9cyL1 PC9xbW8wNjiB1VqmqYAf/HhC8TG5Pe+DaDCRwcCTBZhwz9Cc4nG2eAOh5WtjojjdvcMP 5LVAinMQkDlksTGZ3leRkoea1P05J13IwZeDWW9Dy56gCuwzSOkMNaYHDtCuC8XMDw/H kkux3QF/rS0YR1+85n5ufUqqUcSAWR+DJSSVf6mR+PbF0cJr30PWMXD/ChwxubCCmB0E +dNGJ08KTuG9xpF6l+aDJGw/TDfLkUiOvak00qoCcxWPatmG/8QxkoeBdpPnGVYm0NZc xvjA== X-Gm-Message-State: AOJu0Yx0MR61vjyd6l6NnfUxc8VMq1EE8AuI/OTAYhyj9byOa+zCi1pa uwfo/NnEIS+huzusxkbFQlRU9XRqSyvNt9Nl2fO25x7JfIZyF6+kC4nMnIKHOpGiTHErgg/o1qW EeD3daJhTe7Bkg3+tQF3NUkcLETajTDeaNFv+4vAz/5CHDrtOGg== X-Gm-Gg: ASbGncuiIAqTCRGguENqxaoJR60HKLTzo/DVNc26TNBGEGUu8JaO3p4wdObGXHDhsbw x2D8TAFGRuATFgs73io7/ywLqsj2p7QlHPjgoQDEEj5bbY7MvQJvC7Ze6kJijtzE+2Jt1MlTZ6N hJtszzZnzgC6PCyCtQNvJwFZrN0/jdoStKRA== X-Google-Smtp-Source: AGHT+IHfh/Car5iWkVkgIP/zVbUbzOcxup45xCPGJokoFpbAhjgu2mzQHPDGX+SGwi5ReaSiu3cYBnLqxzatd+e7u3M= X-Received: by 2002:a05:6402:13cc:b0:5e0:8840:5032 with SMTP id 4fb4d7f45d1cf-5f327674cafmr295515a12.3.1744218252461; Wed, 09 Apr 2025 10:04:12 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Francisco Olarte Date: Wed, 9 Apr 2025 19:03:35 +0200 X-Gm-Features: ATxdqUG1sdpVaN7ppm9z0CGpMI_hh9k4s4LiAo-tNIjMPzcpPTfecYC__WSdTLk Message-ID: Subject: Re: Cannot connect local with ttrust (pg_upgrade assumes it) To: "Abraham, Danny" Cc: "pgsql-general@lists.postgresql.org" Content-Type: text/plain; charset="UTF-8" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk 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.