SLONIK_UNSUBSCRIBE_SET(7)
π SLONIK_UNSUBSCRIBE_SET(7) β the "we're so done here" command
okay bestie, welcome to slonik_unsubscribe_set(7) π this is part of the Slony-I 2.2.11 documentation, and it's the page you read when you want a set to stop replicating. iconic breakup energy, but for database replication. π
β¨ NAME β¨
UNSUBSCRIBE SET β end replication of a Slony-I set. yeah. that's it. that's the vibe. π
π¦ SYNOPSIS π¦
UNSUBSCRIBE SET (options);
πΈ DESCRIPTION πΈ
so what does it actually do?? it stops the subscriber from replicating the set. the tables get opened up for full access by the client application on the former subscriber. π
not me stressing about your data β the tables are not truncated or otherwise modified. like, at all. zero touch. all original triggers, rules and constraints are restored. π«Ά
and here are the args you gotta feed it:
ID = ivalβ the ID of the set to unsubscribe. which set are we dumping? tell it here. πRECEIVER = ivalβ the Node ID of the (former) subscriber. the soon-to-be-ex, if you will. π
β EXAMPLE β
here's what it looks like in the wild, no cap:
UNSUBSCRIBE SET (
ID = 1,
RECEIVER = 3
);
π₯ LOCKING BEHAVIOUR π₯
heads up bestie, this one takes exclusive locks on each replicated table on the subscriber. why?? because it's gotta drop the replication triggers off those tables and restore the other triggers/rules. it's giving "hold my earrings, I need a minute." π
π SLONIK EVENT CONFIRMATION BEHAVIOUR π
Slonik is a polite queen: it waits for the command submitted to the previous event node to be confirmed on the specified event node before it submits this command. no cutting in line. periodt. β¨
π DANGEROUS/UNINTUITIVE BEHAVIOUR π
okay so listen. resubscribing an unsubscribed set requires a complete fresh copy of data from the provider to be transferred. why?? because the tables have been subject to possible independent modifications while they were off doing their own thing. π¨
so yeah β unsubscribing is lowkey a one-way door unless you're ready to re-ship everything. plan accordingly, babes. π
π VERSION INFORMATION π
this command was introduced in Slony-I 1.0. vintage. a classic. she's been serving since the beginning. π
that's the whole page, bestie β you're now certified in unsubscribing sets π this was SLONIK UNSUBSCRIBE SET(7) from the Slony-I 2.2.11 documentation, dated 19 September 2024. go forth and unsubscribe 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