SLONIK_DROP_SET(7)
π DROP SET β bestie, we're deleting a whole set π
okay so this is a page from the Slony-I 2.2.11 Documentation era, and it's the slonik_drop_set(7) manual β yes, that slonik. buckle up π
β¨ NAME β¨
DROP SET β discard a Slony-I replication set. like, bye girl, we're letting it go π
πΈ SYNOPSIS πΈ
DROP SET (options);
π¦ DESCRIPTION π¦
So what we're doing here is dropping a set of tables out of the Slony-I configuration. And the way that this works? It automatically unsubscribes every single node from the set β no manual unsubscribing, no "wait should I do that myself", it just handles it β and it restores the original triggers and rules on all the subscribers. giving cleanup crew energy fr fr π§Ήβ¨
Now here's the deets on the two things you can pass in:
ID = ivalβ the ID of the set that's getting dropped. that's the one you're saying goodbye to π«ΆORIGIN = ivalβ the current origin node of the set. yes, current, like right now, not whatever it used to be π
This whole thing runs through schemadocdropset(p_set_id integer) β and ngl, that one is [not available as a man page]. so if you went looking for it, that's why, bestie, it's just not there π
π EXAMPLE π
look at her go:
DROP SET ( ID = 5,
ORIGIN = 2 );
that's it. that's the whole vibe. set 5, origin node 2, dropped. slay.
π₯ LOCKING BEHAVIOUR π₯
heads up, this is the part where things get a lil intense
On each node, this is going to require taking out exclusive locks on every replicated table in the set. why? because it has to modify the table schema to clean up all the triggers and rules. so yeah β exclusive locks, every replicated table, every node. it's giving "clear your schedule" π not a background-task-at-3pm situation.
β SLONIK EVENT CONFIRMATION BEHAVIOUR β
Here's the lil synchronization moment: slonik waits for the command that was submitted to the previous event node to be confirmed on the specified event node before it even thinks about submitting this command. it's patient. it's polite. it's not skipping the line π«Ά
π VERSION INFORMATION π
This command was introduced in Slony-I 1.0 β so it's basically an OG. iconic behavior, honestly π
that's the whole page bestie, you're officially certified in dropping sets π and this cutie lil doc was brought to you by the fine folks behind Slony-I 2.2.11 Documentation, dated 19 September 2024 β mwah, thanks for the lore ππ
π¦ 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