53300: sorry, too many clients already
Randomly started getting this error when running tests using testcontainers...
Npgsql.PostgresException: '53300: sorry, too many clients already'
Always the same test would fail - initially just returning a System.NullReferenceException with no indication of what was happening. After a bit of digging around found that the underlying