Re: Password Encryption and Connection Issues - Mailing list pgsql-general

From Laurenz Albe
Subject Re: Password Encryption and Connection Issues
Date
Msg-id 5535692f0b3095f591e76d3d51e1a76d87ffe85c.camel@cybertec.at
Whole thread Raw
In response to Re: Password Encryption and Connection Issues  (Ron Johnson <ronljohnsonjr@gmail.com>)
List pgsql-general
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.
>
> That requires setting the password to null and then recreating the
> password, no?  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



pgsql-general by date:

Previous
From: Laurenz Albe
Date:
Subject: Re: analyze-in-stages post upgrade questions
Next
From: Ron Johnson
Date:
Subject: Re: Password Encryption and Connection Issues