Skip to main content

Lakebase migration assessment checks

Beta

This feature is in Beta.

When you create a migration, Lakebase assesses the source PostgreSQL database before it copies any data. The assessment catches compatibility problems early, so you fix them on the source before the copy runs instead of discovering them partway through.

This page is a reference for every check: what it verifies, what each result means, and how to fix a source that doesn't pass. To run an assessment and act on its results, see Review the assessment.

Some checks run one time for the source server. Others run for each database in the migration, and their results name the database they apply to.

Check verdicts​

Each check returns one of the following verdicts. The Severity column of the assessment results in the Lakebase App shows the verdict, and the API returns it in each check's verdict field.

Verdict

API value

Effect

Pass

ASSESSMENT_CHECK_VERDICT_PASS

The check found no issue.

Warning

ASSESSMENT_CHECK_VERDICT_WARNING

The check found something to review. Warnings don't block the migration, but you must acknowledge them before you start.

Blocker

ASSESSMENT_CHECK_VERDICT_ACTION_REQUIRED

The source needs a change. Fix the issue on the source, and then re-run the assessment.

Unsupported

ASSESSMENT_CHECK_VERDICT_UNSUPPORTED

The source uses something that migrations don't support, such as an event trigger, or a source database is larger than 500 GB. Change the source, and then re-run the assessment.

Error

ASSESSMENT_CHECK_VERDICT_ERROR

The check couldn't complete, for example because Lakebase couldn't connect to the source database. Fix the cause, and then re-run the assessment.

Verdict

API value

Effect

Pass

ASSESSMENT_CHECK_VERDICT_PASS

The check found no issue.

Warning

ASSESSMENT_CHECK_VERDICT_WARNING

The check found something to review. Warnings don't block the migration, but you must acknowledge them before you start.

Blocker

ASSESSMENT_CHECK_VERDICT_ACTION_REQUIRED

The source needs a change. Fix the issue on the source, and then re-run the assessment.

Unsupported

ASSESSMENT_CHECK_VERDICT_UNSUPPORTED

The source uses something that migrations don't support, such as an event trigger, or a source database is larger than 500 GB. Change the source, and then re-run the assessment.

Error

ASSESSMENT_CHECK_VERDICT_ERROR

The check couldn't complete, for example because Lakebase couldn't connect to the source database. Fix the cause, and then re-run the assessment.

Blocker, Unsupported, and Error results block the migration, and the API sets blocks_migration to true for them. The blockers count on the migration's Overview tab includes all three. You can acknowledge warnings only when every check returns Pass or Warning, and you acknowledge all of the warnings together.

Checks by category​

Assessment checks are grouped by the category that the Lakebase App shows in the Type column. In the following tables, Server means that the check runs one time for the source server, and Each database means that it runs for each source database in the migration. The ID matches the check_id field that the API returns.

Connectivity and permissions​

Check (ID)

Runs for

What it checks

If it doesn't pass

Source password login (100)

Server

The role in the Unity Catalog connection can log in, and its password hasn't expired.

Blocker. Update the connection to use a role that can log in, and then re-run the assessment.

Database connectability (101)

Each database

Lakebase can connect to the source database and run a query.

Error. Check the database name, the network path to the source, and the credentials in the connection, and then re-run the assessment.

Instance inspection access (102)

Server

The role is a superuser, or it's a member of pg_read_all_settings and pg_read_all_stats and can read pg_settings and pg_stat_activity.

Blocker. Grant the role pg_read_all_settings and pg_read_all_stats, or the equivalent access on a managed service, and then re-run the assessment.

Schema data read access (103)

Each database

The role has SELECT on every table, partitioned table, materialized view, and foreign table, and USAGE on the schemas that contain them.

Blocker. Grant USAGE on the affected schemas and SELECT on the affected relations, and then re-run the assessment.

Check (ID)

Runs for

What it checks

If it doesn't pass

Source password login (100)

Server

The role in the Unity Catalog connection can log in, and its password hasn't expired.

Blocker. Update the connection to use a role that can log in, and then re-run the assessment.

Database connectability (101)

Each database

Lakebase can connect to the source database and run a query.

Error. Check the database name, the network path to the source, and the credentials in the connection, and then re-run the assessment.

Instance inspection access (102)

Server

The role is a superuser, or it's a member of pg_read_all_settings and pg_read_all_stats and can read pg_settings and pg_stat_activity.

Blocker. Grant the role pg_read_all_settings and pg_read_all_stats, or the equivalent access on a managed service, and then re-run the assessment.

Schema data read access (103)

Each database

The role has SELECT on every table, partitioned table, materialized view, and foreign table, and USAGE on the schemas that contain them.

Blocker. Grant USAGE on the affected schemas and SELECT on the affected relations, and then re-run the assessment.

PostgreSQL and replication​

Check (ID)

Runs for

What it checks

If it doesn't pass

Postgres version support (200)

Server

The source runs PostgreSQL 14, 15, 16, 17, or 18.

Unsupported. Use a source that runs a supported version.

Check (ID)

Runs for

What it checks

If it doesn't pass

Postgres version support (200)

Server

The source runs PostgreSQL 14, 15, 16, 17, or 18.

Unsupported. Use a source that runs a supported version.

Size and workload​

Check (ID)

Runs for

What it checks

If it doesn't pass

Database size (300)

Each database

The database is 500 GB (500,000,000,000 bytes) or smaller. The size includes indexes.

Unsupported for a database larger than 500 GB. Reduce the source database to 500 GB or less, and then re-run the assessment.

Table load size risk (301)

Each database

The size of the largest table, partition, or materialized view.

Warning for a large table. Plan for a longer data copy before you start.

Source egress throughput (303)

Server

The transfer rate from the source to Lakebase, measured by streaming a small amount of generated data. The check doesn't read your tables.

Warning for a low rate. Check the source's network egress limits and the network path to the source.

Check (ID)

Runs for

What it checks

If it doesn't pass

Database size (300)

Each database

The database is 500 GB (500,000,000,000 bytes) or smaller. The size includes indexes.

Unsupported for a database larger than 500 GB. Reduce the source database to 500 GB or less, and then re-run the assessment.

Table load size risk (301)

Each database

The size of the largest table, partition, or materialized view.

Warning for a large table. Plan for a longer data copy before you start.

Source egress throughput (303)

Server

The transfer rate from the source to Lakebase, measured by streaming a small amount of generated data. The check doesn't read your tables.

Warning for a low rate. Check the source's network egress limits and the network path to the source.

Database compatibility​

Check (ID)

Runs for

What it checks

If it doesn't pass

Encoding compatibility (400)

Each database

The database encoding is UTF8.

Blocker. Recreate the source database with UTF8 encoding.

Locale compatibility (401)

Each database

The database's collation and character type are C, POSIX, or a UTF-8 locale.

Warning. Review sorting and comparison behavior that depends on the locale.

Collation compatibility (402)

Each database

Columns with a non-default collation use C, POSIX, or a UTF-8 locale.

Warning. Move the affected columns to the database default collation or to a supported collation.

Extension version compatibility (403)

Each database

Whether the database has extensions on the supported list, other than plpgsql. Lakebase installs each one at the version it provides, which can differ from the source version.

Warning. Review version-specific extension behavior.

Extension behavior compatibility (404)

Each database

Whether the database has extensions that aren't on the supported list. The migration doesn't install these extensions on the target.

Warning. Review application behavior that depends on these extensions, or remove them from the source.

Schema relation compatibility (405)

Each database

Whether the database has foreign tables.

Unsupported. Remove the foreign tables from the source database.

Partitioning compatibility (406)

Each database

Whether any tables use legacy inheritance (INHERITS) instead of declarative partitioning.

Warning. Review the affected tables, or convert them to declarative partitioning.

Data type compatibility (407)

Each database

Whether table columns use user-defined data types.

Warning. Confirm that each type can be recreated on Lakebase, or replace it with a built-in type.

Large object usage (408)

Each database

Whether the database has large objects. Migrations don't copy large objects.

Blocker. Remove large objects from the source database.

Custom tablespace usage (410)

Each database

Whether any tables, materialized views, or indexes use a tablespace other than pg_default. The migration creates these objects in the default storage on the target.

Warning. Acknowledge that tablespace placement isn't kept.

Generated column compatibility (412)

Each database

Whether any tables have stored generated columns.

Warning. Validate the affected columns on the target.

Routine compatibility (413)

Each database

Whether any functions or procedures that aren't part of an extension use a language other than plpgsql or sql, such as C or PL/Python.

Blocker. Remove or replace the routines on the source. To keep a routine, recreate it on the target after the migration.

Trigger compatibility (414)

Each database

Whether the database has event triggers. Table triggers don't affect this check.

Unsupported. Remove the event triggers from the source.

Procedural language compatibility (415)

Each database

Whether the database has procedural languages other than internal, c, sql, and plpgsql.

Unsupported. Remove these procedural languages from the source, along with the routines that use them.

Foreign table inventory (416)

Each database

Whether the database has foreign tables.

Unsupported. Remove the foreign tables from the source database.

Foreign dependency recreatability (417)

Each database

Whether the database has foreign servers.

Unsupported. Remove the foreign servers and the objects that depend on them.

Check (ID)

Runs for

What it checks

If it doesn't pass

Encoding compatibility (400)

Each database

The database encoding is UTF8.

Blocker. Recreate the source database with UTF8 encoding.

Locale compatibility (401)

Each database

The database's collation and character type are C, POSIX, or a UTF-8 locale.

Warning. Review sorting and comparison behavior that depends on the locale.

Collation compatibility (402)

Each database

Columns with a non-default collation use C, POSIX, or a UTF-8 locale.

Warning. Move the affected columns to the database default collation or to a supported collation.

Extension version compatibility (403)

Each database

Whether the database has extensions on the supported list, other than plpgsql. Lakebase installs each one at the version it provides, which can differ from the source version.

Warning. Review version-specific extension behavior.

Extension behavior compatibility (404)

Each database

Whether the database has extensions that aren't on the supported list. The migration doesn't install these extensions on the target.

Warning. Review application behavior that depends on these extensions, or remove them from the source.

Schema relation compatibility (405)

Each database

Whether the database has foreign tables.

Unsupported. Remove the foreign tables from the source database.

Partitioning compatibility (406)

Each database

Whether any tables use legacy inheritance (INHERITS) instead of declarative partitioning.

Warning. Review the affected tables, or convert them to declarative partitioning.

Data type compatibility (407)

Each database

Whether table columns use user-defined data types.

Warning. Confirm that each type can be recreated on Lakebase, or replace it with a built-in type.

Large object usage (408)

Each database

Whether the database has large objects. Migrations don't copy large objects.

Blocker. Remove large objects from the source database.

Custom tablespace usage (410)

Each database

Whether any tables, materialized views, or indexes use a tablespace other than pg_default. The migration creates these objects in the default storage on the target.

Warning. Acknowledge that tablespace placement isn't kept.

Generated column compatibility (412)

Each database

Whether any tables have stored generated columns.

Warning. Validate the affected columns on the target.

Routine compatibility (413)

Each database

Whether any functions or procedures that aren't part of an extension use a language other than plpgsql or sql, such as C or PL/Python.

Blocker. Remove or replace the routines on the source. To keep a routine, recreate it on the target after the migration.

Trigger compatibility (414)

Each database

Whether the database has event triggers. Table triggers don't affect this check.

Unsupported. Remove the event triggers from the source.

Procedural language compatibility (415)

Each database

Whether the database has procedural languages other than internal, c, sql, and plpgsql.

Unsupported. Remove these procedural languages from the source, along with the routines that use them.

Foreign table inventory (416)

Each database

Whether the database has foreign tables.

Unsupported. Remove the foreign tables from the source database.

Foreign dependency recreatability (417)

Each database

Whether the database has foreign servers.

Unsupported. Remove the foreign servers and the objects that depend on them.

Operational health​

Check (ID)

Runs for

What it checks

If it doesn't pass

Connection headroom (500)

Server

Whether the source has enough free connections for the migration and your existing traffic.

Warning. Increase max_connections, reduce client load, or start the migration at a quieter time.

Long transaction risk (501)

Server

The age of the oldest open transaction on the source.

Warning for a long-running transaction. Finish or end long-running transactions before you start.

Lock contention risk (502)

Server

Whether any session on the source is blocked by another session.

Warning. Resolve the blocking locks, or re-run the assessment at a quieter time.

Source health headroom (503)

Each database

The shared-buffer cache hit ratio (how often the source serves reads from memory instead of from disk) of the database, sampled over a few seconds.

Warning for a low ratio. Investigate the source workload, or start the migration at a quieter time.

Check (ID)

Runs for

What it checks

If it doesn't pass

Connection headroom (500)

Server

Whether the source has enough free connections for the migration and your existing traffic.

Warning. Increase max_connections, reduce client load, or start the migration at a quieter time.

Long transaction risk (501)

Server

The age of the oldest open transaction on the source.

Warning for a long-running transaction. Finish or end long-running transactions before you start.

Lock contention risk (502)

Server

Whether any session on the source is blocked by another session.

Warning. Resolve the blocking locks, or re-run the assessment at a quieter time.

Source health headroom (503)

Each database

The shared-buffer cache hit ratio (how often the source serves reads from memory instead of from disk) of the database, sampled over a few seconds.

Warning for a low ratio. Investigate the source workload, or start the migration at a quieter time.

Any check can also return Error if it can't complete.

Supported source versions and extensions​

The source must run PostgreSQL 14, 15, 16, 17, or 18.

The migration installs these extensions on the target at the version that Lakebase provides. For the versions that Lakebase supports, see Postgres extensions.

address_standardizer, address_standardizer_data_us, autoinc, bloom, btree_gin, btree_gist, citext, cube, databricks_auth, dict_int, earthdistance, fuzzystrmatch, hll, hstore, insert_username, intagg, intarray, isn, lakebase_text, lakebase_tokenizer, lakebase_vector, lo, ltree, moddatetime, pg_graphql, pg_hint_plan, pg_jsonschema, pg_prewarm, pg_stat_statements, pg_trgm, pgcrypto, pgrouting, pgrowlocks, pgstattuple, plpgsql, postgis, postgis_raster, postgis_sfcgal, postgis_tiger_geocoder, postgis_topology, refint, seg, tablefunc, tcn, tsm_system_rows, tsm_system_time, unaccent, uuid-ossp, vector, xml2

The migration doesn't install other extensions. The Extension behavior compatibility check reports each one as a warning.

Example​

The following example shows part of a get-assessment response with one blocker and one warning. A real response includes a result for every check. Each check's check_id is a string that holds the check ID, and checks that run one time for the source server have no database field.

JSON
{
"name": "migrations/my-migration/assessments/1",
"state": "ASSESSMENT_STATE_NEEDS_ACTION",
"checks": [
{
"check_id": "408",
"verdict": "ASSESSMENT_CHECK_VERDICT_ACTION_REQUIRED",
"blocks_migration": true,
"reason": "The source uses PostgreSQL large objects, which are unsupported by Lakebase migration and excluded from snapshot data loads. Remove large-object usage from the source before rerunning assessment and starting migration.",
"database": "app"
},
{
"check_id": "410",
"verdict": "ASSESSMENT_CHECK_VERDICT_WARNING",
"blocks_migration": false,
"reason": "One or more objects use custom tablespaces. Lakebase migrates their contents but cannot preserve source physical tablespace placement. Acknowledge that schema and data loads strip TABLESPACE clauses and objects will land on Lakebase-managed default storage.",
"database": "app"
}
],
"create_time": "2026-11-10T12:00:00Z",
"complete_time": "2026-11-10T12:00:30Z",
"expire_time": "2026-11-11T12:00:30Z"
}