Last fall, we migrated our 4TB Postgres database from version 9.6 to version 13 with minimal downtime.