r/SQL • u/Wise_Ear_4064 • 2d ago
PostgreSQL Guided one-time Postgres → Databricks Lakebase migration (assessment before you cut over)
If you're evaluating Lakebase (managed Postgres on Databricks), there's a Beta one-time migration path: connect source via a Unity Catalog PostgreSQL connection, map 1 to 10 databases, run an assessment (pass, warn, block), then Lakebase copies roles, schema, and data to a target branch. You still handle passwords, grants/ownership, and cutover, but you get a structured workflow instead of improvised pg_dump and hope.
Use logical replication if you need sync until cutover; use migration when you want a single copy and a defined switch.
Has anyone run the Lakebase migration assessment against a real legacy Postgres? What showed up as blockers?
1
u/Any_Hyena2312 2d ago
We haven't done the actual migration yet, but ran the assessment tool against our somewhat old (10y) postgres instance a couple weeks ago. The only thing that gave us some headache was some extensions we had installed (pg_partman and some selfmade C extensions). There were also some tables without primary keys that gave some warnings (but didn't block the migration).
It's not mentioned in the docs, but the assessement took not much longer than 3 minutes for our 200GB database.
1
u/Discordbothost 1d ago
Check cross-database consistency in the rehearsal. The docs use a snapshot per database: orders at 10:00 and payments at 10:05 can disagree. For related databases, freeze writes across both before the final one-time copy.
1
u/ArielCoding 1d ago
The assessment warns you about extensions Lakebase doesn’t support, and the migration won’t install them on the new database, if your app depends on any of them, plan a replacement before you switch.
1
u/CompanyMaster4769 1d ago
the blockers are usually extension dependencies and ownership/privilege weirdness, not the actual table data, because legacy postgres loves hiding a tiny landmine in the setup somewhere
1
u/Significant_Tune9219 1d ago
For any one-time migration, the assessment before cutover tends to matter more than the copy itself. Things worth checking are extension and data type compatibility, sequences and identity values (which often get missed), and how you'll verify the copy, e.g. row counts plus per-table checksums on a sample. It's also worth deciding in advance how long writes pause and what the rollback path is if validation fails after the switch.
1
u/IcyAlgae9840 14h ago
did the assessment actually catch anything pg_dump would’ve quietly swept under the rug?
1
u/Miserable_Flan671 1h ago
The real blockers are probably going to be extensions and superuser-dependent objects, not the actual table data.