SET_MOVE_SEQUENCE(7)

SET_MOVE_SEQUENCE7

Move a sequence from one slony-i replication set to another

Usage

SET MOVE SEQUENCE (options);

Overview

Change the set a sequence belongs to. The current set and the new set must originate on the same node and subscribed by the same nodes.

Caution

Due to the way subscribing to new sets works make absolutely sure that the subscription of all nodes to the sets is completely processed before moving sequences. Moving a sequence too early to a new set causes the subscriber to try and add the sequence already during the subscription process, which fails with a duplicate key error and breaks replication.

FCORIGIN = ival F[0]

Origin node for the set. A future version of slonik might figure out this information by itself.

FCID = ival F[0]

Unique ID of the sequence.

FCNEW SET = ival F[0]

Unique ID of the set to which the sequence should be moved.

This uses “schemadocsetmovesequence( integer, integer )” [not available as a man page].

Examples

FCSET MOVE SEQUENCE (
    ORIGIN = 1,
    ID = 20,
    NEW SET = 3
);
    F[0]

Locking behaviour

No application-visible locking should take place.

Version information

This command was introduced in Slony-I 1.0.5

Releases

2 releases since Debian 4.0 (Etch); the text changed 1 time.

  1. 4.0
  2. 5.0

From slony1-doc 1.2.15-1 in Debian 5.0 (Lenny). Parsed by carta from the page's man source.