SLONIK_ADMIN_CONNINFO(7)
π NAME π
ADMIN CONNINFO β the lil preamble that tells slonik how to find a PostgreSQL database π
β¨ SYNOPSIS β¨
NODE ival ADMIN CONNINFO = 'DSN'; [ ival;] [ 'conninfo']
πΈ DESCRIPTION πΈ
Okay bestie, here's the tea β: this command describes how the slonik utility can actually reach a node's database in the cluster β and it does this from wherever slonik itself is being run (which, realistically, is the DBA's workstation, no cap).
That conninfo string? It's the string argument you hand straight to the PQconnectdb() libpq function. That's it, that's the whole vibe. π
Now here's a fun fact: slonik will not even try to connect to a given database unless some subsequent command actually requires that connection. Lowkey polite of it. π¦
Note π As mentioned in the original documents, Slony-I is designed as an enterprise replication system for data centers. It has been assumed throughout the entire development that the database servers and administrative workstations involved in replication and/or setup and configuration activities can use simple authentication schemes like'trust'. Alternatively, libpq can read passwords from.pgpass.
Note π If you need to change the DSN information for a node β as would happen if the IP address for a host were to change β you must submit the new information using theSLONIK STORE PATH(7)command, and that configuration will be propagated. Existingslonprocesses may need to be restarted in order to become aware of the configuration change. Not me having to restart things, the drama π
π₯ EXAMPLE π₯
NODE 1 ADMIN CONNINFO = 'dbname=testdb host=server1 user=slony';
π VERSION INFORMATION π
This command was introduced in Slony-I 1.0 β an OG, fr fr. β
Slony-I 2.2.11 Documentation, dated 19 September 2024 β that's a wrap, bestie, go slay your replication setup πβ¨
π¦ 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