On Wed, Sep 3, 2008 at 11:19 AM, David Lee Lambert <[EMAIL PROTECTED]>wrote:
> Let's say I have three servers, X, Y and P. X and Y are "test" instances, > P > is "production" (or closer to it). X and Y have Slony installed, P has not > been used for Slony before. Can I install Slony on P and use the same set > definition to start replicating to Y from P? Or do I need to create a new > set, even though the table-names would be the same? > > What's a good sequence of commands to do this? > Yes, you can do this. Something along these lines: First, create the DB and load an empty schema identical to the origin's schema. Next, add the node: store node (id = 3, event node = 4, comment = 'Node 3'); store path (server = 4, client = 3, conninfo = 'host=d04 dbname=xyz user=slony port=5432'); store path (server = 3, client = 4, conninfo = 'host=d03 dbname=xyz user=slony port=5432'); And then subscribe the set: subscribe set (id = 1, provider = 4, receiver = 3, forward = no); sit back, relax, and watch the logs to see when it is done copying the set.
_______________________________________________ Slony1-general mailing list [email protected] http://lists.slony.info/mailman/listinfo/slony1-general
