简体   繁体   English

是否可以将Postgresql数据库从Amazon RDS复制到另一个Amazon RDS?

[英]Is it possible to replicate a Postgresql database from an Amazon RDS to another Amazon RDS?

I have a Postgresql database in my Amazon RDS and I want to replicate it into another Amazon RDS so I can bifurcate the connections depending on the situation but keeping the same data. 我的Amazon RDS中有一个Postgresql数据库,我想将其复制到另一个Amazon RDS中,因此我可以根据情况将连接分为两部分,但要保留相同的数据。

Besides, it would be very nice if I could replicate just some tables from the main database and be able to do INSERTS into the non-replicated tables from the second database. 此外,如果我可以仅复制主数据库中的某些表并能够将INSERTS插入第二个数据库中的非复制表中,那将非常好。 Like this: 像这样:

**DB1**      **DB2**
DB1.table1   DB2.table1
DB1.table2   DB2.table2
DB1.table3   DB2.table3
DB1.table4   DB2.table_log
DB1.table5

Replicate table1 , table2 and table3 from DB1 to DB2 , not replicate table4 and table5 and still be able to INSERT into table_log . table1table2table3DB1复制到DB2 ,不复制table4table5并且仍然能够将它们INSERTtable_log

Is this possible? 这可能吗?

You can use the AWS Database Migration Service to replicate specific tables from one database to another, and you can even alter the schema when you replicate if you want. 您可以使用AWS数据库迁移服务将特定的表从一个数据库复制到另一个数据库,如果需要,甚至可以在复制时更改架构。 Be sure to create a change data capture (CDC) replication task so changes in the source database get immediately pushed to your target database. 确保创建更改数据捕获(CDC)复制任务,以便源数据库中的更改立即被推送到目标数据库。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM