'\" -*- coding: us-ascii -*- .if \n(.g .ds T< \\FC .if \n(.g .ds T> \\F[\n[.fam]] .de URL \\$2 \(la\\$1\(ra\\$3 .. .if \n(.g .mso www.tmac .TH "SLONIK SET MOVE SEQUENCE" 7 "24 July 2014" "" "Slony-I 2.2.3 Documentation" .SH NAME SET MOVE SEQUENCE \- Move a sequence from one Slony-I replication set to another .SH SYNOPSIS 'nh .fi .ad l \fBSET MOVE SEQUENCE (options);\fR \kx .if (\nx>(\n(.l/2)) .nr x (\n(.l/5) 'in \n(.iu+\nxu 'in \n(.iu-\nxu .ad b 'hy .SH DESCRIPTION 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. .RS \fBCaution\fR .PP 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. .RE .TP \*(T Origin node for the set. A future version of slonik might figure out this information by itself. .TP \*(T Unique ID of the sequence. .TP \*(T Unique ID of the set to which the sequence should be moved. .PP This uses \(lqschemadocsetmovesequence(p_new_set_id integer, p_seq_id integer)\(rq [not available as a man page]. .SH EXAMPLE .nf \*(T .fi .SH "LOCKING BEHAVIOUR " No application-visible locking should take place. .SH "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. .SH "VERSION INFORMATION " This command was introduced in Slony-I 1.0.5