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 1u2bBj-0033HK-2J for pgsql-general@arkaria.postgresql.org; Wed, 09 Apr 2025 19:34: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 1u2bBf-006c0q-VE for pgsql-general@arkaria.postgresql.org; Wed, 09 Apr 2025 19:34:16 +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 1u2bBf-006c0i-Ig for pgsql-general@lists.postgresql.org; Wed, 09 Apr 2025 19:34:15 +0000 Received: from mail-oa1-x2d.google.com ([2001:4860:4864:20::2d]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1u2bBd-004ORr-0b for pgsql-general@lists.postgresql.org; Wed, 09 Apr 2025 19:34:15 +0000 Received: by mail-oa1-x2d.google.com with SMTP id 586e51a60fabf-2c873231e7bso4065918fac.3 for ; Wed, 09 Apr 2025 12:34:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1744227252; x=1744832052; 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=I545WpvLaMpEkXwovuQb8seeUrJ1utqMc1h7fdoQx/M=; b=azjMQxtTrX8JXIhRSS2SkkNba3eD5jjmh2S1+uyYj3e8OZQXYeHCjRlbdLDJ/S8H0U s9MFGJkYoXuSnG9hbO07GejhylBOT1CANPZLoQpO0TSLNFz4QKktNiP+6lpHNBYkkqqu f+MdS2pwHNnWVnVWiNWuZ6XuE7BdjDew39j2TE2zgWCfxQ1mwiRgjjhpkfWB+BUBLWU4 urxgXFbE7XmL1fmkvV5rRtU9ivPpqDx6QGvmzHZyWLFzuMtRtImWkk4XSNKUztmkcUW+ qcuj56uWBOxVJqkiBHF3n6cEswxRUyOBXbu6qdh8Y4nt5tPXdigssIiHY6OnP/piiAgC PPlA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1744227252; x=1744832052; 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=I545WpvLaMpEkXwovuQb8seeUrJ1utqMc1h7fdoQx/M=; b=JoTjG7Z4TXcmd8XBZVoyQF4Tz9evmoULOY3WyF2pzSCM4oo1wOFjoSBR1lCjE+7Ikx lW91a1KpdRO3Zyd6THAsmwlcpCmkxaFEfakAyb+NvrRwdoRglToE/g8wGpoSnUAjf50o ESv9NwYnOpF6S6wYmdEanqa9xN7H3v6ydUlKlpOL5zZT4JfXanIftx0nDFQMtxvZx896 gxmgDTpWkb8CaPDFrNgZcbjqNwX2P9cJmfLjljV1QPCSeV/BF/Pt2M8aXjvf+tOUVmEv EhqrNK9m95b0Y7jWSKlVa0f7NdtEq23/FmoUmCp2bqpDhVAZlnIlqAeq8rG9oREWEqVp pEig== X-Forwarded-Encrypted: i=1; AJvYcCW/8oq8G5YDR5cx7wPhtDD6Vxx9VRe1O5eCKsJPmFnZUh4a9KSqT+1xxMZwkWrlaZHT7pFZJHgiVBTaMcXi@lists.postgresql.org X-Gm-Message-State: AOJu0Yw2DzlXNFie3ChPxxLeHY7FUK+CkP5GTqc2dQvpjAqhMyFAQFwT TtqxgHC2DlQ/dVZEQelfGcNt7jDva9QJE2N8MhtZB20b7V+ekv2bq3xHjInSs7I8U0hBvRrQgyZ dH8Xw1UY44+gu7J6ZHGqk5mENwT8= X-Gm-Gg: ASbGncuodEEIXdd/ZiRQuACOyw8tQTfSpKyyWlgnF1MoomnlU1SDjwDLBGZrr1tCM0S IKZuJsTPljAmTzRyOzylEnYydQa0sorSJcopXIfr9piUf1uYmcf3I/8bo7wcbrWnzkF/F17vGPj dIlOAFZ024bR4OrduP0S3tW4w= X-Google-Smtp-Source: AGHT+IHJCnmGK/q9anSIH/Rdr4RhUJwdabedikkuF+6LaR0M4TX6AxKEYFLPA0/aIyoJwf7UQumdRPHAQT+x2AP1ngs= X-Received: by 2002:a05:6871:33a8:b0:2c2:bd31:cf1c with SMTP id 586e51a60fabf-2d09170a0cemr2000745fac.7.1744227251828; Wed, 09 Apr 2025 12:34:11 -0700 (PDT) MIME-Version: 1.0 References: <8e9d16f4-9a8d-4917-9320-d48c7996e4d1@aklaver.com> In-Reply-To: From: "David G. Johnston" Date: Wed, 9 Apr 2025 12:34:01 -0700 X-Gm-Features: ATxdqUHt358Bmu2Pt60rj89ZS7TOtEooRULz7vJInvwbZTXWaiQ9bYrvWAJrZ8Q Message-ID: Subject: Re: [EXTERNAL] Re: Cannot connect local with ttrust (pg_upgrade assumes it) To: "Abraham, Danny" Cc: Adrian Klaver , Francisco Olarte , pgsql-general@lists.postgresql.org Content-Type: multipart/alternative; boundary="000000000000c0bf0a06325d8d7b" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --000000000000c0bf0a06325d8d7b Content-Type: text/plain; charset="UTF-8" On Wed, Apr 9, 2025, 12:21 Abraham, Danny wrote: > Thanks again. > Here is the example: > >>>>>>>> > dba-tlv-x6y64k% cat pg_hba.conf > # TYPE DATABASE USER CIDR-ADDRESS METHOD > local all all trust > host all all 0.0.0.0/0 scram-sha-256 > > dba-tlv-x6y64k% pg_ctl reload > server signaled > dba-tlv-x6y64k% psql -Upostgres > Password for user postgres: > psql (17.4) > Type "help" for help. > > ctrlmdb=# > >>>>>>> > PSQL should not have asked for the password. > Thanks > Danny > Suggests there are environment variables coming into play making non-default choices for you. Namely, making you not use local as the connection method. David J. --000000000000c0bf0a06325d8d7b Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Wed, Apr 9, 2025, 12:21 Abraham, Dann= y <danny_abraham@bmc.com>= ; wrote:
Thanks again.
Here is the example:
>>>>>>>>
dba-tlv-x6y64k% cat pg_hba.conf
# TYPE=C2=A0 DATABASE=C2=A0 =C2=A0 USER=C2=A0 =C2=A0 =C2=A0 =C2=A0 CIDR-ADD= RESS=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 METHOD
local=C2=A0 =C2=A0all=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0all=C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0trust
host=C2=A0 =C2=A0 all=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0all=C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A00.0.0.0/0=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0scram-sha-256

dba-tlv-x6y64k% pg_ctl reload
server signaled
dba-tlv-x6y64k% psql -Upostgres
Password for user postgres:
psql (17.4)
Type "help" for help.

ctrlmdb=3D#
>>>>>>>
PSQL should not have asked for the password.
Thanks
Danny

Suggests there are environment variables coming into play making non-d= efault choices for you.=C2=A0 Namely, making you not use local as the conne= ction method.

David J.

<= /div>
--000000000000c0bf0a06325d8d7b--