logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

SET MOVE TABLE - Move a table from one Slony-I replication set to another

Description

Change the set a table belongs to. The current set and the new set must origin on the same node and sub‐ scribed 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. ORIGIN = ival Current origin of the set. A future version of slonik might figure out this information by itself. ID = ival Unique ID of the table. NEW SET = ival 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].

Example

SET MOVE TABLE ( ORIGIN = 1, ID = 20, NEW SET = 3 );

Locking Behaviour

No application-visible locking should take place.

Name

SET MOVE TABLE - Move a table from one Slony-I replication set to another

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.

Synopsis

SETMOVETABLE(options);

Version Information

This command was introduced in Slony-I 1.0.5 19 September 2024 SLONIKSETMOVETABLE(7)

See Also