It is possible to set pool size in pg.defaults. However let's say I have two databases and two separate connection strings for them:
postgres://localhost/db1
postgres://localhost/db2
And I want to have two different pool sizes for each of them. For example max 20 connections for db1 and max 100 connections for db2. How I can do that? Changing pool size in pg.defaults will set it globally...
It is possible to set pool size in
pg.defaults. However let's say I have two databases and two separate connection strings for them:And I want to have two different pool sizes for each of them. For example max 20 connections for db1 and max 100 connections for db2. How I can do that? Changing pool size in pg.defaults will set it globally...