32.3. Closing a Connection

To close a connection, use the following statement:

EXEC SQL DISCONNECT [connection];

The connection can be specified in the following ways:

If no connection name is specified, the current connection is closed.

It is good style that an application always explicitly disconnect from every connection it opened.

copyright  ©  September 06 2008 sean dreilinger url: http://durak.org/sean/pubs/software/postgresql/ecpg-disconnect.html