<div dir="ltr">Hi David,<br><br>The use case here is that we have 2 Clusters. One Cluster is on AWS Aurora Postgres Compatible Version 11.6 which has master and slave rds instance. Master is writable DB and Slave is read-only DB. We want to use Bucardo to replicate the slave DB ( read-only) to the Cluster on Google CloudSQL which is also Postgres 12 compatible DB and is Writable. We donot want much transactions on master hence want to use aurora read replica which is slave to act as source and google cloudsql db to act as destination.<br><br>Let me know your thoughts on this and if it's possible or not.<br><br>Regards<br>Jaydeep</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Oct 16, 2020 at 9:14 PM David Christensen <<a href="mailto:david@endpoint.com">david@endpoint.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">Hi Jay,<br>
<br>
Bucardo uses triggers to capture data changes (and clean up after itself) so it has to run on a writeable server.<br>
<br>
What is the use case you’re looking at, and what are the versions of the databases involved?<br>
<br>
Best,<br>
<br>
David<br>
--<br>
David Christensen<br>
Senior Software and Database Engineer<br>
End Point Corporation<br>
<a href="mailto:david@endpoint.com" target="_blank">david@endpoint.com</a><br>
785-727-1171<br>
<br>
<br>
> On Oct 16, 2020, at 10:35 AM, jay saini <<a href="mailto:jay00725@gmail.com" target="_blank">jay00725@gmail.com</a>> wrote:<br>
> <br>
> Hi David,<br>
> <br>
> Thanks for your reply. I have tested both the writable dbs and it works fine for me. The use case is to use read only replica (slave) which will act as source and replicate it to writable db? Is this possible with Bucardo? Or we need to have both the dbs as Writable.<br>
> <br>
> Expecting your response on this.<br>
> <br>
> Regards<br>
> Jaydeep<br>
> <br>
> On Fri, 16 Oct 2020 at 8:09 PM, David Christensen <<a href="mailto:david@endpoint.com" target="_blank">david@endpoint.com</a>> wrote:<br>
> Hi Jay,<br>
> <br>
> You need to target a writable database since it is trying to insert rows; you can’t use a readonly standby for the target. Could you use the source for the readonly standby as the target?<br>
> <br>
> Best,<br>
> <br>
> David<br>
> <br>
>> On Oct 16, 2020, at 8:26 AM, jay saini <<a href="mailto:jay00725@gmail.com" target="_blank">jay00725@gmail.com</a>> wrote:<br>
>> <br>
>> <br>
>> I have successfully performed replication from Master to Master from Bucardo. I am stucked in Master-Slave replication. When I am trying to add a sync it gives me the following error:<br>
>> <br>
>> root@ip-172-31-XX-XX:~# bucardo add sync test relgroup=herd_pg dbs=SRC,DEST_SLAVE<br>
>> <br>
>> WARNING: Issuing rollback() due to DESTROY without explicit disconnect() of DBD::Pg::db handle dbname=migratedb;host=35.243.157.109;port=5432 at line 207. Failed to add sync: DBD::Pg::st execute failed: ERROR: DBD::Pg::db do failed: ERROR: cannot set transaction read-write mode during recovery at line 207. at line 30. CONTEXT: PL/Perl function "validate_sync" at /usr/bin/bucardo line 4670.<br>
>> <br>
>> To give you more context: My master is AWS Aurora Postgres RDS and My slave is on Google CloudSQL which is a read-only replica.<br>
>> <br>
>> Looking forward for response<br>
>> _______________________________________________<br>
>> Bucardo-general mailing list<br>
>> <a href="mailto:Bucardo-general@bucardo.org" target="_blank">Bucardo-general@bucardo.org</a><br>
>> <a href="https://bucardo.org/mailman/listinfo/bucardo-general" rel="noreferrer" target="_blank">https://bucardo.org/mailman/listinfo/bucardo-general</a><br>
<br>
</blockquote></div>