docker-library / postgres

Docker Official Image packaging for Postgres
http://www.postgresql.org
MIT License
2.14k stars 1.11k forks source link

Only print password length warning for 12 and 13 #1166

Closed tianon closed 7 months ago

tianon commented 7 months ago

In 14+, the arbitrary length limitations have been removed from the PostgreSQL server (https://github.com/postgres/postgres/commit/67a472d71c98c3d2fa322a1b4013080b20720b98).

Updates #511 See https://github.com/docker-library/postgres/issues/507#issuecomment-1848667847

tianon commented 7 months ago

I've got this as a draft because I don't love relying on PG_MAJOR in this script. :disappointed:

Maybe it's OK because it's only for a warning that's harmless either way and only for the two oldest versions? On the other hand, PostgreSQL 13 is actively supported until Nov 2025. :sweat_smile: