4 DISCONNECT — terminate a database connection
8 DISCONNECT connection_name
14 DISCONNECT closes a connection (or all connections) to the database.
19 A database connection name established by the CONNECT command.
22 Close the “current” connection, which is either the most
23 recently opened connection, or the connection set by the SET
24 CONNECTION command. This is also the default if no argument is
25 given to the DISCONNECT command.
28 Close all open connections.
35 EXEC SQL CONNECT TO testdb AS con1 USER testuser;
36 EXEC SQL CONNECT TO testdb AS con2 USER testuser;
37 EXEC SQL CONNECT TO testdb AS con3 USER testuser;
39 EXEC SQL DISCONNECT CURRENT; /* close con3 */
40 EXEC SQL DISCONNECT ALL; /* close con2 and con1 */
47 DISCONNECT is specified in the SQL standard.
51 CONNECT, SET CONNECTION