SLONIK_SET_MOVE_SEQUENCE(7)
π« SLONIK SET MOVE SEQUENCE π«
ok bestie, we're in the slonik zone, and today's episode is all about SET MOVE SEQUENCE β a page from the Slony-I 2.2.11 documentation, no cap.
β¨ NAME β¨
SET MOVE SEQUENCE β move a sequence from one Slony-I replication set to another π¦
π SYNOPSIS π
SET MOVE SEQUENCE (options);
π DESCRIPTION π
So what this does is it changes the set that a sequence belongs to. That's the whole vibe. But here's the thing β the current set and the new set must originate on the same node and be subscribed by the same nodes. Like, they have to match, periodt. π₯
Caution β οΈ Because of the way subscribing to new sets works, make absolutely sure that the subscription of all nodes to the sets is completely processed before you move any 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. π So please, bestie, wait for it to finish. I'm begging.
ORIGIN = ivalβ the origin node for the set. A future version of slonik might figure out this information by itself (right now it's giving "do it yourself" energy π).ID = ivalβ the unique ID of the sequence. πNEW SET = ivalβ the unique ID of the set that the sequence should be moved to.
Under the hood this uses schemadocsetmovesequence(p_new_set_id integer, p_seq_id integer) [not available as a man page]. iykyk π§
πΈ EXAMPLE πΈ
SET MOVE SEQUENCE (
ORIGIN = 1,
ID = 20,
NEW SET = 3
);
Look at her go. β¨
π LOCKING BEHAVIOUR π
No application-visible locking should take place. Not a single lock in sight, we love a low-maintenance command. π«Ά
π¬ 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. So she's patient, she's polite, she waits her turn. π
π VERSION INFORMATION π
This command was introduced in Slony-I 1.0.5 β an elder, honestly, and still slaying. π
and that's the whole page, bestie!! π this was documented back on 19 September 2024 as part of the Slony-I 2.2.11 Documentation, and it's SLONIK SET MOVE SEQUENCE(7) in case you need to cite her. go move those sequences responsibly, mwah ππ
β¨
π¦ where this page comes from
- debian trixie: slony1-2-doc 2.2.11-6
- ubuntu questing: slony1-2-doc 2.2.11-6
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms