I have a PostgreSQL database instance located in EU region. I plan on introducing another PostgreSQL database instance located in a new geographical region.
As part this work, I am to migrate data for selected customers from a database instance in EU to a database instance in this new geo region and am seeking for advice.
On a surface, this boils down to doing the following work:
accounts.id
,accounts
table from EU database instance to accounts
table in another region's database instance,account
record, recursively (eg as well as potentially from tables related to those tables...).Effectively, having a specific DB record as starting point, I need to:
INSERT
statement,INSERT
statements, in a transaction, on another database instance.It appears as if I might need to build a tool to do this kind of work. But before I do, I wonder:
Indeed You need a whole proccess yo do this, i think that You should create a new schema to do the data Select i think functions could do the magic, then replicate that data.
They replication tool it's not that hard to configurate.
Here it's the link: https://www.postgresql.org/docs/current/runtime-config-replication.html !
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.