PGPOOL_AD...TACH_NODE(3)
β¨ PGPOOL_AD...TACH_NODE(3) β¨
okay bestie, so this is from the pgpool-II 4.7.2 Documentation, section 3 of the manuals β it's the glow-up era of pgpool docs π
πΈ NAME πΈ
pgpool_adm_pcp_attach_node β a function to attach given node ID π«Ά
β¨ SYNOPSIS β¨
pcp_attach_node returns record(integer node_id, text host, integer port,
text username, text password,
out node_attached boolean);
pcp_attach_node returns record(integer node_id, text pcp_server,
out node_attached boolean);
π DESCRIPTION π
pcp_attach_node attaches a node to Pgpool-II. that's it, that's the whole vibe. it's putting a node back on the roster π₯
π ARGUMENTS π
node_idβ the index of the backend node to attach. this is the which one of it all πpcp_serverβ the foreign server name for pcp server. so instead of spelling out host/port/user/pass, you just point at the server you already named π«- Other arguments β lowkey not re-explained here, they live their own life. go see
pcp_common_options(1)for the deets π
π¦ EXAMPLE π¦
here's what the output actually looks like, no cap:
test=# SELECT * FROM pcp_attach_node(node_id => 1, host => 'localhost', port => 11001, username => 't-ishii', password => 't-ishii');
node_attached
---------------
t
(1 row)
so you hit it with a SELECT *, everything's named-argument style, and it hands you back a t in node_attached β that's the node being attached, periodt β¨ (one row, obviously, she's not doing extra)
pro tip from the page: that second synopsis form means you can just passpcp_serverand skiphost,port,usernameandpasswordentirely. two whole signatures, two whole moods π«Ά
and that's the whole page, bestie! π this was pgpool-II 4.7.2, dated 2023, filed under PGPOOL_AD...TACH_NODE(3) β drink some water, attach that node, and slay the day ππΈ
π¦ where this page comes from
- ubuntu stonking: pgpool2 4.7.2-1build1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms