How to avoid data loss during Oracle to PostgreSQL migration