SLONIK_SET_MOVE_SEQUENCE(7)

πŸ“¦
version 2.2.11 Β· 4 versions
, in debian trixie, ubuntu questing

πŸ’« 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