Migrating Metabase to Postgres 17

When attempting to migrate Metabase to use Postgres 17 by changing the docker container to 17 I get errors starting it and have to go back to 16. At the time I setup my Metabase container, 16 was what it recmomended, now it uses "latest" but that gives me errors.

metabase-db | 2025-03-02 18:22:09.342 UTC [1] FATAL: database files are incompatible with server

You can’t migrate the database version just by switching containers, please refer to the Postgres docs to see how to upgrade the database

Wouldn't this be a constant problem if you use latest though, as eventually latest will upgrade?
I know the recommended way would be to export, switch versions, import again.

you shoud never use a "latest" tag in a database, you don't want containers (and even more database) to have a mutable tag. Please fix it to a version and if you have to upgrade do it as the documentation says

From Metabase docs, it suggests using latest.

that's an example, it's not meant to be used to run Metabase in production How to run Metabase in production | Metabase Learn