<div dir="ltr">Hi,<br><div><br></div><div>I have two Postgres instances running in a multi-master environment. It works but my application keeps getting violations of unique constraint in the primary keys when simultaneous changes are made in each of the DB instances at the same time. </div><div><br></div><div>At this point I just would like to separate the origin of this issue: is it my web framework of choice  (Django) that keeps the last sequential primary key stored in some memory variable, or is it something in Bucardo that I misconfigured?</div><div><br></div><div>Users of Django or others frameworks, do you experience some issues like this? I'm also using Django REST.</div><div><br></div><div>Thanks in advance for any help!</div><div><br></div><div>Ps.: I'm also posting in some Django forums about this and promise to add here if anything helpful comes up. </div></div>