to postgresql v16. Is this possible?
I get a version error. "The data directory was initialized by PostgreSQL version 13, which is not compatible with this version 16.4 (Ubuntu 16.4-1.pgdg22.04+1)"
When I read the documentation I saw the option “--pg-version-force”, will this help me?
Nope, that's not possible. You can only restore into the same major version. For what you are trying to achieve you would need a dump done within pg_dump. That is creating a logical backup with SQL statements for DDL and data.
Обсуждают сегодня