Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clarification: How many2many tables are managed #1

Open
omalbastin opened this issue May 3, 2018 · 2 comments
Open

Clarification: How many2many tables are managed #1

omalbastin opened this issue May 3, 2018 · 2 comments

Comments

@omalbastin
Copy link

Its not an issue. Just want to know how bucardo handles the many2many tables in odoo as those tables dont have a primary key.

@anassahmed
Copy link
Owner

Bucardo doesn't do anything special in this case, it'll record the SQL queries Odoo will do on these tables and try to re-execute them everywhere else; which may lead to a mess without a primary key IMHO.

At the end of the day, this was an experiment for anyone who wants to know if he can use Bucardo with Odoo.

I'm waiting for PostgreSQL to implement Multi-Master Logical Replication (with Transaction-based log that also includes CREATE queries), because installing a new module in odoo (or sometimes creating a new sequence) don't get replicated at all with Bucardo (This is called DDL replication).

@mohamedmshokry
Copy link

mohamedmshokry commented Jan 1, 2023

Hi,

Too late I know but though to leave my comment here for anyone passing by recently.

  • Bucardo doesn't support replicating tables with no primary keys
  • Bucardo doesn't replicate DDL it only replicate DML. Any change in Table structure will break the sync
  • Bucardo manages the multi master replicaion though conflict strategy which must be specified while creating multi-master replication. More on it Here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants