Eligibility
The Migration Assistant is available in open preview, with no organization enrollment required. Your source database and target cluster must meet the following requirements:- The source database runs PostgreSQL 15 to 18.
- The target is an existing, single-region Mission Critical cluster in a Cockroach Continuum organization or an existing, single-region CockroachDB Advanced cluster in another CockroachDB Cloud organization.
- The target cluster does not already have a Migration Assistant instance. Each target cluster can have one instance at a time.
PostgreSQL compatibility
Support for a PostgreSQL source version does not mean that every feature used by the source database can be migrated automatically. Review the converted schema and migration plan for unsupported objects and changes that affect application behavior. The Migration Assistant reports which objects cannot be converted and require manual work. The following limitations apply during preview:
For broader differences between PostgreSQL and CockroachDB, refer to PostgreSQL Compatibility. CockroachDB support for a feature does not by itself mean that the Migration Assistant migrates it automatically.
How it works
You deploy the Migration Assistant to CockroachDB Cloud. There is nothing to install locally. The Assistant uses the MOLT (Migrate Off Legacy Technology) toolset for conversion, data load, and verification. You can download converted DDL and generated scripts. During the migration, you can ask the Migration agent questions about your schema and the conversion in a chat panel. The Migration agent may suggest updates to your schema, stored procedures, and user-defined functions, which you can choose whether to apply. For more information, refer to Ask questions in the Migration agent panel.Migration sequence
The Assistant guides you through the following migration sequence.- Connect and verify. In this step the Assistant connects to the source database and verifies read permissions. It also connects to the target database and verifies write permissions.
- Select what to migrate. The Assistant discovers the source schema, and you select the objects to migrate.
- Convert the schema. The Assistant converts the source schema to CockroachDB DDL, explains each change it makes, and calls out anything that needs your decision. You can edit any statement before applying it.
- Generate the plan. The Assistant assesses the selected objects and schema-conversion decisions, then produces an ordered migration plan.
- Complete pre-migration work. You review and complete the executable and manual steps required to prepare the target for loading data.
- Load data. The Assistant moves the source data into the target cluster, using MOLT Fetch.
- Convert and test routines. The Assistant classifies and converts source stored procedures and user-defined functions (UDFs), and generates tests for your review.
- Complete post-migration work. You restore deferred database objects including indexes and foreign keys, and verify loaded data with MOLT Verify. Later, outside the Migration Assistant, you will test the application against the target.
- Review results. The Assistant summarizes the migration, identifies objects that still require manual work, and recommends next steps.
The Assistant does not run ongoing replication or perform application cutover. Its scope ends at a converted, loaded, and verified target. For ongoing replication, refer to MOLT Replicator. For application validation and cutover preparation, refer to Migration Best Practices.
What is shared with the Migration agent
The Migration agent is the AI component of the Migration Assistant. Cockroach Labs manages the Migration agent in its own cloud account, so you do not need to configure or connect a separate AI service. Your database credentials stay with the Migration Assistant and are never shared with the Migration agent. To analyze compatibility and generate a migration plan, the Assistant shares the following information with the Migration agent:- Schema structure and definitions, including object DDL for tables, views, types, and routines.
- Limited table statistics, such as row counts, that help determine how to group tables in MOLT Fetch commands.
- Text that you enter in the Migration agent panel.

