Hi,
Following is my code that does some initial accounts creation in bulk for some purpose.

After creating about 52 accounts it gives the following error:

org.postgresql. util.PSQLExcept ion: FATAL: sorry, too many clients already

Unless I am overlooking something , I open only one database connections, making 3 SQL Statatements, 3 ResultSets.

I am running Postgresql Server 9.3...