Add utility to detect connection leaks during testing

Description

There are many tests that leak connections, and that's the reason why we cannot run the test suite on a PostgreSQL which is limited to only 30 connections only.

To find out the tests that leak connections, we need an utility to assist us.

Environment

None

Status

Assignee

Vlad Mihalcea

Reporter

Vlad Mihalcea

Fix versions

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Priority

Major