从布卡多同步中删除表



我在两台机器上有两个postgreSQL数据库,Bucardo保持同步。我在 Postgres 数据库中有一个特别大的表,我不想再同步了,我如何告诉 bucardo 停止尝试同步它?

您应该能够使用以下命令删除该表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,表应该不再同步

bucardo remove sync <syncname>

不过,您必须手动删除源表上的触发器

bucardo remove table <sourcetablename> --force
bucardo remove table <desttablename> --force

最新更新