Hi , We plan to migrate large database from Oracle to Postgres(version 13.6, OS Redhat8 Enterprise), we are checking options to make data load in Postgres fast. Data volume is about several TB, thousands of indexes, many large table with
partitions. We want to make data load running fast and avoid miss any indexes when reindexing. There are 2 options about reindex. Could you give some suggestions about the 2 options, which option is better.
Reindex on Postgres 13.6 not support parallel ,right? So we need to start multiple session to reindex multiple tables/indexes in parallel.
2). Use pg_dump to dump meta data only , then copy “CREATE INDEX … sql “
Drop indexes before data load After data load, increase
max_parallel_maintenance_workers, maintenance_work_mem Run CREATE INDEX … sql to leverage parallel create index feature.
Thanks, James
|