logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

pgpool_adm_pcp_detach_node - a function to detach given node ID

Arguments

node_id
           The index of backend node to detach.

       gracefully
           If true, wait for all session of pgpool-II terminates.

       pcp_server
           The foreign server name for pcp server.

       Otherarguments
           See pcp_common_options(1).

Description

pcp_detach_node detaches a node from Pgpool-II.

Example

       Here is an example output:

               test=# SELECT * FROM pcp_detach_node(node_id => 1, gracefully => 'false', host => 'localhost', port => 11001, username => 't-ishii', password => 't-ishii');
               node_detached
               ---------------
               t
               (1 row)

pgpool-II 4.6.1                                       2023                         PGPOOL_ADM_PCP_DETACH_NODE(3)

Name

       pgpool_adm_pcp_detach_node - a function to detach given node ID

Synopsis

pcp_detach_nodereturnsrecord(integernode_id,booleangracefully,texthost,integerport,textusername,textpassword,outnode_detachedboolean);pcp_detach_nodereturnsrecord(integernode_id,booleangracefully,textpcp_server,outnode_detachedboolean);

See Also