On Mon, 2025-02-24 at 22:19 +1300, Edwin UY wrote: > We are upgrading this database from v12 to v16 and we want to do a dump of it in case we decided to do a restore from v16 to v12. > SO, after the upgrade, in case we want to rollback to v12, we will do a pg_dump using v16 and then using v12 pg_restore
Be warned that downgrade is not supported and restoring the dump to v12 might well fail. You might have to manually edit the dump file until you can restore it without errors.