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 1uZWj2-004nTq-7f for pgsql-general@arkaria.postgresql.org; Wed, 09 Jul 2025 15:28:48 +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 1uZWj0-000bCF-0A for pgsql-general@arkaria.postgresql.org; Wed, 09 Jul 2025 15:28:46 +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 1uZWiz-000bBV-Lp for pgsql-general@lists.postgresql.org; Wed, 09 Jul 2025 15:28:46 +0000 Received: from mail-wm1-x336.google.com ([2a00:1450:4864:20::336]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1uZWiy-006Q8t-11 for pgsql-general@lists.postgresql.org; Wed, 09 Jul 2025 15:28:45 +0000 Received: by mail-wm1-x336.google.com with SMTP id 5b1f17b1804b1-451e2f0d9c2so671015e9.1 for ; Wed, 09 Jul 2025 08:28:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cybertec.at; s=google; t=1752074923; x=1752679723; darn=lists.postgresql.org; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:to:from:subject:message-id:from:to:cc:subject:date :message-id:reply-to; bh=6QLTgbRT+FH05oIbCeRRe04aldNppvOxOu0qOurk3OQ=; b=QMJSnGMgAVsw7CwerkL/US/oCjJmx0vqQH/04gokIUPvkAtyPPnHYQyVsfXq7Y9dv2 mtnnirvkZjgpDyxwEQUaA0PLva6n61mr3+d1IeVWZrGirA8tqhaJHUe2PgdejytYcNJE +1WekF5mzuZUBgftD+FehBe6iXXRQM/Hb4hnKuzJqqwZnhnNUlIm5sEDMMSDscuUqECy fuRc5q63Ysc86U/4jekkCL5zaqE2Apoz3UFD6AeNnRv/tHgozKOVBJqh58hZTT6kAu3/ TLAZtPUCRe0h6wLNwctQIyMGU0/4A6rSGw/L5pDkhFqgjDjslU2aKJ6H2LUvjCybgQwp DdCQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1752074923; x=1752679723; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:to:from:subject:message-id:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=6QLTgbRT+FH05oIbCeRRe04aldNppvOxOu0qOurk3OQ=; b=DNSz/9rKRy2HeuvL4ewQUkR9mJaBD3uOTvfxN/l+Is71W/dcl3+DGT2WsGi1bXryUP oSCX5LDJaewiAFj5c/tlEckXwJYyib8T3AoVFzLj6BTvB2F9pY/IKAw3U+qiw3zwimru 8L6K3dDgfHtwaHcosIkgWLnznKInVNz8BBLGjBou2VcU9gZInO7f9m5VWjSPDxNjqQvG AHxzWtKr2zm++k4iIg1azWvLienkrhC0eQQlafXiZKClNLwTyeJt32a0TfVeDz77ITMz M0nL4QjWyHlzfzuwoE4PifnfsJv4/KjceB9hGrUyMwJp1qAT7JQdOCsbfmw9PyspRPO9 bIIw== X-Forwarded-Encrypted: i=1; AJvYcCXWe6IuSODMHxPIkukzF0pn7Whm9c/r6kvYgE5OYgJeAy49ajjAE3Gg6w7kM+/7oq0YHOYqKy89ffm2W6BR@lists.postgresql.org X-Gm-Message-State: AOJu0YzLApn/+c0vUbQHAKqRthDxdhZArN9PLMmEeXE3ULmgek61oaCt AFa2Q3ya/Leii8NnEKd6bVcBZNq1Kl/8LlWiq7R/NX0A0lU1czNt51ICRJuwIRBtaVk= X-Gm-Gg: ASbGncs+8mv7DpTOOl1zrJO5b4Xpuz4waknhzR/ZXFuvh7MajVCkiiVYlieIH/0Tolk PRBsuQSU6USwJv/UyeO1FZbV8a4/lZmk8A++IIghAgtCybmyjZgLvdRbIYI5htQBjh/8qy3z4Ak qXuHJO8jWduZPq3+zkc7Toym36tUizVvcBmg5f4Pg1EPqMQV+plK3JW+fivq9GHzgHTHbfgJUat 9Y4P697e8IzViQzOCp9otZf4GkDmzSVDmMKV4n41NSqMfoSkM5AUWEyHUXz9ENMDvea3Ckxlg7V ssrIsupjYcy2Igvl3z5mb+VriO1fOLbBLXF/btwUmtRRM15j5VZobZgyiaS3ni9oQtmGIXjtpov hIDulEWNEFzK4trI= X-Google-Smtp-Source: AGHT+IEY4et+VGPfk6LR2mlnYj489TkJsOywpcY3oxO0MGyHoSDzrguRyq+8nzAGgPyr2yDVBt2Rlg== X-Received: by 2002:a05:600c:1c22:b0:453:84a:e8d6 with SMTP id 5b1f17b1804b1-454cd6281cemr77023905e9.1.1752074922701; Wed, 09 Jul 2025 08:28:42 -0700 (PDT) Received: from laurenz.albe-K4N0CV00F97414D ([2001:871:260:83af:4a24:d22:8093:bb2e]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-454cdb549absm42829835e9.1.2025.07.09.08.28.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Jul 2025 08:28:42 -0700 (PDT) Message-ID: <5535692f0b3095f591e76d3d51e1a76d87ffe85c.camel@cybertec.at> Subject: Re: Password Encryption and Connection Issues From: Laurenz Albe To: Ron Johnson , "pgsql-general@lists.postgresql.org" Date: Wed, 09 Jul 2025 17:28:41 +0200 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.56.2 (3.56.2-1.fc42) MIME-Version: 1.0 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Wed, 2025-07-09 at 11:09 -0400, Ron Johnson wrote: > > Best solution: Upgrade everyone to scram, then change md5 to scram > > in pg_hba.conf and never look back. >=20 > That requires setting the password to null and then recreating the > password, no?=C2=A0 Otherwise IIRC, changing an md5 password leaves the > new password also in md5 format. No. The hashing algorithm chosen depends only on the current setting of "password_encryption", not on the hashing algorithm chosen for the previous password. Yours, Laurenz Albe