<div dir="auto">Lucas,<div dir="auto">In order to work properly, Bucardo needs to set the parameter "session_replication_role" (which disables triggers, FKs and checks) for each node in the replication session.</div><div dir="auto"><br></div><div dir="auto">I think this is not possible in a managed RDS instance.</div><div dir="auto"><br></div><div dir="auto">Gustavo.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Mar 8, 2021, 22:05 Lucas Possamai <<a href="mailto:drum.lucas@gmail.com">drum.lucas@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, 8 Mar 2021 at 19:42, Lucas Possamai <<a href="mailto:drum.lucas@gmail.com" target="_blank" rel="noreferrer">drum.lucas@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Hi all.</div><div><br></div><div>I am migrating a live PostgreSQL 9.2 database to RDS PostgreSQL 12.4, using Bucardo.</div><div><br></div><div>I remember reading somewhere months ago that I should disable the triggers of the target database, but unfortunately, I cannot find that information anymore.</div><div><br></div><div>The business wants to slowly move customers to the PG 12.4 RDS database. The idea was to modify the application and check if it's <b>customer_id X, Y and Z</b>, write data to RDS and not current PG 9.2.</div><div><br></div><div>My question is:</div><div>Can I have bucardo replicating data from PG 9.2 to RDS 12.4 and at the same time, have customers writing data to RDS? Of course that means I'd have to re-enable triggers on my target DB?</div><div><br></div></div></blockquote><div><br></div><div>I remembered Bucardo does multi-master replication. Tried to look on the internet how to set it up, but apparently, my RDS PG 12 is already considered a "master". So I think there is no reason for me to disable the triggers on the target_db. Again, I do not remember where I read this.</div><div><br></div><div>Waiting for someone to confirm this...</div><div><br></div>Lucas</div></div>
_______________________________________________<br>
Bucardo-general mailing list<br>
<a href="mailto:Bucardo-general@bucardo.org" target="_blank" rel="noreferrer">Bucardo-general@bucardo.org</a><br>
<a href="https://bucardo.org/mailman/listinfo/bucardo-general" rel="noreferrer noreferrer" target="_blank">https://bucardo.org/mailman/listinfo/bucardo-general</a><br>
</blockquote></div>