dotConnect for PostgreSQL Documentation
Devart.Data.PostgreSql Namespace / PgSqlConnection Class / ClearAllPools Method / ClearAllPools(Boolean) Method
Determines whether to start the operation immediately, or after the timeout.

In This Topic
ClearAllPools(Boolean) Method
In This Topic
Clears all pools associated with the connection.
Syntax
'Declaration
 
Public Overloads Shared Sub ClearAllPools( _
   ByVal forced As Boolean _
) 
 

Parameters

forced
Determines whether to start the operation immediately, or after the timeout.
Remarks

Pools are automatically cleared if a connection is idle for some time or closed by the server. Call the ClearAllPools method to force explicit pools clearance.

Note: if forced=false, this function is equivalent to ClearAllPools.

If there are many opened connections, immediate pool clearing can cause high server load, so it is recommended to use forced = false.

See Also