Choosing schema in the slave host replication set Usin Slony-I

223 Views Asked by At

I am using slony-I to replicate tables from one server to another. I have to databases on the master slave that have same exact tables , and i want to replicate them to a single table in the slave. I can create the same tables in different schemas in the slave table , however i cant determine the schema in the replication set in the slave host.

I want to be able to determine the schema i am replicating to on the slave host.

How can i do this in slony?

Thank you

1

There are 1 best solutions below

1
On

Unfortunately you can't choose the schema on the slave host in slony.The schema name and table name should be identical on both the master and slave. A Work around for this thing is to create another schema on both databases on slave and master and use them in your slony replication