Removing a table from bucardo sync

1.7k Views Asked by At

I have two postgreSQL databases on two machines with Bucardo keeping them in sync. I have a particularly large table in the Postgres database which I don't want to have synced anymore, how do I tell bucardo to stop trying to sync it?

2

There are 2 best solutions below

0
quantumbyte On

you should be able to remove the table with the following command sudo bucardo remove table <tablename>

You can get the table name by doing sudo bucardo list tables The output looks something like this:

15. Table: <tablename>            DB: db_metadata_remote  PK: id (int4)                            Syncs: <syncname>
1.  Table: <tablename>            DB: db_metadata_local   PK: id (int4)

Restart bucardo afterwards with sudo bucardo restart and the table should not get synced anymore

1
g_vk On
bucardo remove sync <syncname>

You'll have to manually remove the triggers on the source table though

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