SLONIK_ADMIN_CONNINFO(7)

πŸ“¦
version 2.2.11 Β· 4 versions
, in debian trixie, ubuntu questing

πŸ’– 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 the SLONIK STORE PATH(7) command, and that configuration will be propagated. Existing slon processes 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