SLONIK_SET_MOVE_TABLE(7)

SLONIK_SET_MOVE_TABLE7

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

Usage

FCSET MOVE TABLE (options);F[0]

Overview

Change the set a table belongs to. The current set and the new set must origin 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 tables. Moving a table too early to a new set causes the subscriber to try and add the table already during the subscription process, which fails with a duplicate key error and breaks replication.

FCORIGIN = ival F[0]

Current origin of the set. A future version of slonik might figure out this information by itself.

FCID = ival F[0]

Unique ID of the table.

FCNEW SET = ival F[0]

Unique ID of the set to which the table should be added.

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

Examples

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

Locking behaviour

No application-visible locking should take place.

Slonik event confirmation behaviour

Slonik waits for the command submitted to the previous event node to be confirmed on the specified event node before submitting this command.

Version information

This command was introduced in Slony-I 1.0.5

Releases

7 releases since Debian 6.0 (Squeeze); the text changed 6 times.

  1. 6.0
  2. 8
  3. 9
  4. 10
  5. 11
  6. 12
  7. 13

From slony1-2-doc 2.2.11-6 in Debian 13 (Trixie). Parsed by carta from the page's man source.