PGPOOL_A...ODE_COUNT(3)
π PGPOOL_A...ODE_COUNT(3) π
okay bestie, welcome to the pgpool-II 4.7.2 Documentation glow-up of this page, no cap β¨
β¨ NAME β¨
pgpool_adm_pcp_node_count β a function that tells you how many backend nodes you've got. it counts them. that's the whole job. π
πΈ SYNOPSIS πΈ
pcp_node_count returns integer(text host, integer port, text username,
text password);
pcp_node_count returns integer(text pcp_server);
two whole ways to call it, pick your fighter π
π¦ DESCRIPTION π¦
pcp_node_count retrieves the number of DB nodes. literally just that. it's giving headcount for your backend π
π ARGUMENTS π
pcp_serverβ the foreign server name for the pcp server. like, the name of the server you already set up, and it just goes and asks that one π«Ά- Other arguments β see
pcp_common_options(1). iykyk, the whole squad of shared options lives over there π
π₯ EXAMPLE π₯
here's what it looks like when it actually pops off:
test=# SELECT * FROM pcp_node_count(host => 'localhost', port => 11001, username => 't-ishii', password => 't-ishii');
node_count
------------
2
(1 row)
two nodes. ate. no crumbs. πβ¨
bestie reminder: that'slocalhost, port11001, usert-ishii, passwordt-ishiiin the example β keep those exactly as-is if you're copy-pasting, don't get creative with it π
and that's the whole page! brought to you by pgpool-II 4.7.2, dated 2023, straight from the PGPOOL_A...ODE_COUNT(3) corner of the manual π π bye bestie, go count some nodes π¦
π¦ 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