CLOSE CONNECTION
Syntax
CLOSE CONNECTION connectionid [NODE nodeid]
Privileges
USERADMIN
Description
The CLOSE CONNECTION command closes the connection identified by the parameter connectionid. An optional NODE argument can be specified to force close a connection into the specified nodeid. The LIST CONNECTIONS command can be used to obtain a list of currently connected connection id(s).
Return
OK string or error value (see SCSP protocol).
Example
> LIST CONNECTION
----|-----------|----------|----------|---------------------|---------------------|
id | address | username | database | connection_date | last_activity |
----|-----------|----------|----------|---------------------|---------------------|
1 | 127.0.0.1 | admin | NULL | 2023-02-03 10:08:20 | 2023-02-06 13:26:48 |
----|-----------|----------|----------|---------------------|---------------------|
> CLOSE CONNECTION 1
OK