I see one of the requirements is that 'Both databases should have the same schema'. How should I manually load the schema to the new database (running on port 5433 for instance)?
I see one of the requirements is that 'Both databases should have the same schema'. How should I manually load the schema to the new database (running on port 5433 for instance)?
So even if a tool like that needed a little boost at the beginning to get going, I’d have something that already took care of that.
I am exploring some options like loading schema from a schema.sql file or something along the lines of what pg_dump does for schema export.
Would love to hear any ideas.
Rather than this ad-hoc thing, you could also try to create a new rails "environment" for this use, I guess.
I am sure the pg_easy_replicate tool brings something to the table(probably replication lifecycle management) but reading the docs, the bare postgres replication looks just as easy if not easier than the easy replicate tool. I am going to try it on my toy db and see how it goes.
https://www.postgresql.org/docs/13/logical-replication-restr...
We do that with Tines, where we can be fully hands off (zero touch ops) and are able to kick off upgrade with switchover for tens of DBs (one at a time for now :D).