SLONIK_INIT_CLUSTER(7)
π INIT CLUSTER π
okay bestie, welcome to SLONIK INIT CLUSTER β straight out of the Slony-I 2.2.11 Documentation bestie-verse. this is where you β¨birthβ¨ a whole new replication cluster, so like, main character energy fr fr. let's get into it π
β¨ NAME β¨
INIT CLUSTER β Initialize Slony-I cluster π¦
πΈ SYNOPSIS πΈ
INIT CLUSTER [ID = integer] [COMMENT = 'string']
π DESCRIPTION π
so basically, this is the glow-up moment: you're initializing the very first node in a brand new Slony-I replication cluster π. the initialization process is a whole lil routine β it creates the cluster namespace, loads all the base tables, functions, procedures, and initializes the node. and it does all of that using schemadocinitializelocalnode(p_comment integer, p_local_node_id text) [not available as a man page] and schemadocenablenode(p_no_id integer) [not available as a man page]. slay π
IDβ the unique, numeric ID number of the node. it's giving social security number but for your node π«ΆCOMMENT = 'comment text'β a descriptive text added to the node entry in the tablesl_node[not available as a man page]. cute lil name tag π
okay so for this whole process to actually work, here's the vibe check: the SQL scripts of the Slony-I system must be installed on the DBA workstation (that's the computer currently executing the slonik utility), while on the system where the node database is running, the shared objects of the Slony-I system must be installed in the PostgreSQL library directory. also, the procedural language PL/pgSQL is assumed to already be installed in the target database. no cap, all of that has to be true π
π EXAMPLE π
INIT CLUSTER (
ID = 1,
COMMENT = 'Node 1'
);
Note π
This command functions very similarly to SLONIK STORE NODE(7), the difference being that INIT CLUSTER does not need to draw configuration from other existing nodes. so like, it's independent, it's self-sufficient, it's giving solo main character π¦
Note π
Be aware that some objects are created that contain the cluster name as part of their name. (Notably, partial indexes onsl_log_1andsl_log_2.) As a result, really long cluster names are a bad idea, as they can make object names 'blow up' past the typical maximum name length of 63 characters. so pls don't name your cluster something unhinged, bestie π
π LOCKING BEHAVIOUR π
This command creates a new namespace and configures tables therein; no public objects should be locked during the duration of this. so like, nothing else is getting held up, we're being polite π β¨
β³ SLONIK EVENT CONFIRMATION BEHAVIOUR β³
Slonik does not wait for event confirmations before performing this command. it just goes, no waiting around, iconic behavior honestly π₯
β VERSION INFORMATION β
This command was introduced in Slony-I 1.0. a true OG π«Ά
and that's the whole page, bestie!! brought to you by the Slony-I 2.2.11 docs, dated 19 September 2024 β mwah, go initialize something cute πβ¨π
π¦ 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