SET_LOAD_BALANCE_POLICY
Sets how native connection load balancing chooses a host to handle a client connection.
Syntax
SET_LOAD_BALANCE_POLICY('policy')
Parameters
| policy |
The name of the load balancing policy to use, one of the following:
Note: Even if the load balancing policy is set on the server to something other than |
Privileges
Superuser
Example
The following example demonstrates enabling native connection load balancing on the server by setting the load balancing scheme to ROUNDROBIN:
=> SELECT SET_LOAD_BALANCE_POLICY('ROUNDROBIN');
SET_LOAD_BALANCE_POLICY
--------------------------------------------------------------------------------
Successfully changed the client initiator load balancing policy to: roundrobin
(1 row)