SLONIK_STORE_PATH(7)
π SLONIK STORE PATH π
okay bestie, this is SLONIK STORE PATH, page 7 of the Slony-I 2.2.11 docs, and it's literally the "how do these two nodes even talk to each other" page. it's giving matchmaker energy fr fr π«Ά
β¨ NAME β¨
STORE PATH β Configure Slony-I node connection π
π SYNOPSIS π
STORE PATH (options);
π¦ DESCRIPTION π¦
so basically this sets up how the replication daemon of one node connects to the database of another node. that's it, that's the whole vibe. π
and if your replication system is supposed to use a special backbone network segment? bestie, THIS is the place where you drop in those special IP addresses or hostnames. and yeah β an existing configuration can be overwritten. no drama, it just gets replaced. π₯
the conninfo string must contain all the info you need to connect to the database as the replication superuser. like, all of it. no half-sending the info. π
okay now this part matters so listen up: the names server and client have nothing to do with the particular role of a node within the cluster configuration. nothing!! it should simply be viewed as 'the server' has the message or data that 'the client is supposed to get.' that's the whole meaning. and for a simple 2 node setup, paths into both directions must be configured. both. don't skip one and then act surprised. π
also, it does not do any harm to configure path information from every node to every other node (full cross product). like, go off, be thorough. the connections are not established unless they are actually required to transfer events or confirmations because of listen entries, or data because of subscriptions. so it's lowkey free real estate. β¨
SERVER = ivalβ Node ID of the database to connect to. πCLIENT = ivalβ Node ID of the replication daemon connecting. π§CONNINFO = stringβ thePQconnectdb()argument used to establish the connection. πCONNRETRY = ivalβ number of seconds to wait before another attempt to connect is made in case the server is unavailable. default is10. β³
this uses "schemadocstorepath(p_pa_connretry integer, p_pa_conninfo integer, p_pa_client text, p_pa_server integer)" [not available as a man page]. iykyk π
πΈ EXAMPLE πΈ
STORE PATH ( SERVER = 1, CLIENT = 2,
CONNINFO = 'dbname=testdb host=server1 user=slony'
);
look at that. clean. iconic. π
π LOCKING BEHAVIOUR π
No application-visible locking should take place. so like, nothing to worry about here, bestie. π«Ά
β SLONIK EVENT CONFIRMATION BEHAVIOUR β
Slonik does not wait for event confirmations before performing this command. it just goes. main character energy, no waiting around. π
π VERSION INFORMATION π
This command was introduced in Slony-I 1.0. so it's been here since the beginning, a true OG. π
and that's the page!! brought to you by the Slony-I 2.2.11 Documentation era, dated 19 September 2024, filed under SLONIK STORE PATH(7). mwah, go configure those paths bestie πβ¨π
π¦ 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