MERGE SET

## Name

MERGE SET — Merge Slony-I replication sets together

## Synopsis

`MERGE SET (options);`

## Description

Merge a set of tables and sequences into another one. This function is a workaround for the problem that it is not possible to add tables/sequences to already-subscribed sets. One may create a temporary set, add the new objects to that, subscribe all nodes currently subscribed to the other set to this new one, and then merge the two together, eliminating the set ID that was being added.

This operation will refuse to be run if the two sets do not have exactly the same set of subscribers.

`ID = ival`

  Unique ID of the set to contain the union of the two separate sets.

`ADD ID = ival`

  Unique ID of the set whose objects should be transferred.

`ORIGIN = ival`

  Current origin node for both sets.

This uses schemadocmergeset( integer, integer ).

## Example

         MERGE SET ( ID = 2,
         ADD ID = 9999,
         ORIGIN = 1 );

## Locking Behaviour

No application-visible locking should take place.

## Version Information

This command was introduced in Slony-I 1.0.5