Re: BUG #16672: Postgres user passwords are corrupted during migration

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: zz5s-akd(at)asahi-net(dot)or(dot)jp
Cc: pgsql-bugs(at)lists(dot)postgresql(dot)org
Subject: Re: BUG #16672: Postgres user passwords are corrupted during migration
Date: 2020-10-15 00:09:48
Message-ID: 3640830.1602720588@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

PG Bug reporting form <noreply(at)postgresql(dot)org> writes:
> The postgres user password is corrupted when migrating from Postgresql 12.4
> to Postgresql 13.

I tried to verify that claim, without success: AFAICS, dump/reload will
correctly propagate the password to the new server, in either md5 or
SCRAM format.

You have not shown very much supporting detail, but I wonder whether
the password is hashed in md5 format and the v13 server's pg_hba.conf
is set to only allow SCRAM passwords. The report sent to the client
intentionally just says "password authentication failed", but you
could look in the postmaster log to see what it says about the failure.
Also, look in pg_authid (of either server), or in the dump file, to see
whether the rolpassword value starts with "md5" or "SCRAM-SHA-256".

regards, tom lane

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message akada shigeki 2020-10-15 00:48:26 RE: BUG #16672: Postgres user passwords are corrupted during migration
Previous Message PG Bug reporting form 2020-10-14 23:05:47 BUG #16672: Postgres user passwords are corrupted during migration