Pool min size
Author: krabradostyCreated Apr 4, 2019Updated Sep 21, 2026
Hi. It seems that min parameter of Pool configuration is not used.
Code
let pool = new Pool({
database: connectionConfig.database,
port: connectionConfig.port,
nolimit: connectionConfig.nolimit,
user: connectionConfig.user,
password: connectionConfig.password,
host: connectionConfig.host,
min: 1
});Expected: At least one connection is always established
Actual:
I receive a removed event with pool.totalCount equals to zero. After that my process is terminated.
Source: brianc/node-postgres