postgreSQL.pool.minimize

Syntax

postgreSQL.pool.minimize (poolname)

Params

poolname is a string containing the global name for the pool.

Action

Closes idle connections until the total number of open connections in the pool has dropped back to the minimum.

Returns

The number of connections closed.

Examples

postgreSQL.pool.minimize ("mytestpool", "hostaddr=192.168.1.3 user=test password=test")

« 3

Notes

The minimum number of connections in a pool is specified by the optional minConnections parameter of the postgreSQL.pool.create verb.

See Also

postgreSQL.pool.create

postgreSQL.pool.dispose