peerdb icon indicating copy to clipboard operation
peerdb copied to clipboard

Adding changes to allow Postgres-to-Postgres migrations with schema, trigger, and index migration support via mirrors

Open jpruiz114 opened this issue 2 weeks ago • 5 comments
trafficstars

jpruiz114 avatar Nov 12 '25 03:11 jpruiz114

CLA assistant check
All committers have signed the CLA.

CLAassistant avatar Nov 12 '25 03:11 CLAassistant

Some notes to self and for visibility:

I've created this repository with some additional files to run PeerDB locally and a few test PostgreSQL databases for the Postgres-to-Postgres migrations supporting schema, trigger, and index migration:

https://github.com/jpruiz114/peerdb-postgres-improvement-testing

jpruiz114 avatar Nov 13 '25 00:11 jpruiz114

@jpruiz114 -- directionally I like this change, I'll take a deeper look tomorrow. Could you sign the CLA please :)

iskakaushik avatar Nov 13 '25 01:11 iskakaushik

I am making sure that all the indexes, triggers, and constraints are moved from the source PostgreSQL into the target PostgreSQL via the mirror process. I still see some discrepancies which I'm trying to fix. I rebased all my commits into a single one and my feature branch for this draft against the latest changes of the main branch.

jpruiz114 avatar Nov 14 '25 02:11 jpruiz114

I feel comfortable with the latest changes where I can see all the schema, trigger, and index migration happening as expected.

Screenshot from 2025-11-14 18-10-07

I will rebase against the latest changes, test again, push, and mark this pull request as ready for review.

Thanks.

jpruiz114 avatar Nov 14 '25 23:11 jpruiz114