START_REBALANCE_CLUSTER

Asynchronously rebalances the database cluster as a background task. This function returns immediately after the rebalancing operation is complete. Rebalancing persists until the operation is complete, even if you close the current session or the database shuts down. In the case of shutdown, rebalancing resumes after the cluster restarts. To stop the rebalance operation, call CANCEL_REBALANCE_CLUSTER.

For detailed information about rebalancing tasks, see Rebalancing Data Across Nodes.

Syntax

START_REBALANCE_CLUSTER()

Privileges

Superuser

Example

=> SELECT START_REBALANCE_CLUSTER();
 START_REBALANCE_CLUSTER 
-------------------------
 REBALANCING
(1 row)

See Also

REBALANCE_CLUSTER