Is there still password max length restrictions in PG?

Sean <iihero@qq.com>

From: Sean <iihero@qq.com>
To: pgsql-hackers <pgsql-hackers@lists.postgresql.org>
Date: 2024-03-18T13:29:11Z
Lists: pgsql-hackers
Hi All,


Just noticed that the definition:
postgres=# \d pg_shadow
.....
&nbsp;usebypassrls | boolean&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; |&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;|&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; |
&nbsp;passwd&nbsp; &nbsp; &nbsp; &nbsp;| text&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;| C&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;|&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; |
.....

Looks like there is no length restriction for the password of a user.


And in the code change history,&nbsp; 67a472d71c ("Remove arbitrary restrictions on password length.", 2020-09-03)&nbsp;
seems having removed the length restriction.&nbsp; (in the&nbsp; history,&nbsp; there is 100 or even max length of 1024.)

So,&nbsp; here,&nbsp; just a minor question,&nbsp; can we consider there is no max length restriction for the password of a user? 
Need some document to make a clarification or suggestion to the user?

BR,
Sean He (iihero@qq.com)