I have a situation where we have the same Postgres...
# troubleshooting
c
I have a situation where we have the same Postgres database schema, same tables, but different hosts for different clients. In total there are about 100-150 different hosts. What's the best way to extract all these different hosts?
v
"best" is subjective as it really depends. One way would be to setup one meltano project with a
tap-postgres
and then call something like
meltano run tap-postgres target-postgres
but set the environment variables properly (Including load_schema to something like
client_name_postgres
for each client before the run.
j
from a yml perspective, i use anchors & aliases to handle duplicate config
m
@jacob_matson what do you mean by “anchor” here? I haven’t come across this term yet in the Meltano world
basically you can re-use the same yml config many times to "clone" schema (i use this in dbt all the time since we have many databases with common schema -> one analytics area)
but also works in meltano config 🙂
m
cool, thank you! I wasn’t aware of this
j
c
Thanks! This has been very helpful!