I 'm using Postgres 10
And I would like to limit connections via pooling. I use this syntax:
"my conexion": "Host=myhost;
Port=5432;
Database=mydb;
Username=postgres;
Password=XXX;
Persist Security Info=True;
Pooling=true;
MinPoolSize=1;
MaxPoolSize=20;
ConnectionLifeTime=15",
After deploying app with this connection string, I have more processes than expected:
postgres=# select state, count(1) from pg_stat_activity group by state;
state | count
--------+-------
| 5
active | 1
idle | 47
MaxPoolSize=20 , so in IDLE column I should have 20 max no? What is wrong? Someone can help me?