-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Closed
Description
I am reposting issue #1869. The docs listed here https://www.npmjs.com/package/pg-pool indicate you can specify a minimum amount of connections to keep open. But this functionally does not exist anywhere in the code except in the type file as a config option.
Are there plans to implement this feature otherwise please remove it from the documentation as it is misleading. Thank you.
Original post:
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.
Metadata
Metadata
Assignees
Labels
No labels