Skip to content

min connections in pool does not work/exist, documentation issue #2011

@ericpearson

Description

@ericpearson

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions