I'm in the same process. Have a look at this document, it's specific for OpenACS, but the problems should be the same everywhere.
There are several incompatibilities, so your application might fail on PG16. You need to fix these first. Later the actual upgrade should be just a pg_dump followed by a psql -f dump.sql.