我在两台机器上有两个postgreSQL数据库,而Bucardo使它们保持同步。我在Postgres数据库中有一个特别大的表,我不想再同步它了,我如何告诉bucardo停止同步它?
发布于 2018-02-16 03:31:44
您应该能够使用以下命令sudo bucardo remove table <tablename>删除该表
您可以通过执行sudo bucardo list tables来获取表名,输出如下所示:
15. Table: <tablename> DB: db_metadata_remote PK: id (int4) Syncs: <syncname>
1. Table: <tablename> DB: db_metadata_local PK: id (int4)然后使用sudo bucardo restart重新启动bucardo,表应该不再同步
发布于 2018-10-05 21:26:59
bucardo remove sync <syncname>但是,您必须手动删除源表上的触发器
bucardo remove table <sourcetablename> --force
bucardo remove table <desttablename> --forcehttps://stackoverflow.com/questions/48387080
复制相似问题