[Bucardo-general] Consolidating Multiple DBs into One Using Custom Schemas

Karl Beck karl at pearhealthlabs.com
Fri Apr 26 17:33:43 UTC 2024


Hey -

Bucardo is a valuable tool we're using to migrate three Postgres databases
from one AWS RDS host to a single Postgres database. Our aim is to
consolidate these databases into one, organizing them into unique schemas
for each database's tables. We've utilized Bucardo's 'customname' feature
for unique schema mapping during synchronization. However, Bucardo checks
for matching source and target schemas during validation, leading to issues
since our three source databases have differing schemas. Our current
workaround involves maintaining a schema ('public') that matches the source
alongside the custom schema. Additionally, we've encountered a problem
where Bucardo migrates data to both the 'public' and the new 'customname'
schema when multiple syncs are configured & enabled.

Is there a way to effectively run multiple synchronizations to consolidate
three databases into one, while keeping them separated by unique schemas?

Example-

*Source DB (3 separate DBs):*

*DB.Schema.Table*

apple.public.<table>

pear.public.<table>

mango.public.<table>

*Target DB ( 1 DB )*

*DB.Schema.Table*

Fruits.apple.<table>

Fruits.pear.<table>

Fruits.mango.<table>

Thank you!

-- 

The information herein is intended for the person or entity to which it 
has been addressed. This document may contain proprietary, 
business-confidential and/or privileged material. Any unauthorized use, 
review, transmission, distribution, reproduction is strictly prohibited.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://bucardo.org/pipermail/bucardo-general/attachments/20240426/022ba5ad/attachment.htm>


More information about the Bucardo-general mailing list