Migrating from traditional databases
In this section, we will outline a few generic steps that are involved in migrating data between any two databases. After that, we will go over a specific example of migrating data from PostgreSQL into CockroachDB.
Migrating from other databases into CockroachDB usually involves the following generic steps:
- Export the schema from the source database.
- Export the data from the source database.
- Transform the data into a desirable format. In most cases, comma-separated values (CSV) should work just fine.
- Compress and transfer the schema and the data to the desired location where it can be imported into CockroachDB.
- Do the data type mapping in the schema from the source to the CockroachDB database.
- Import the schema, along with the data, into CockroachDB.
- Manually create users and privileges.
- All the application teams also have to map current queries from the source database to CockroachDB.
Now, let&apos...