bullmq - v6.0.3
    Preparing search index...

    Type Alias PostgresConnectionOptions

    PostgresConnectionOptions: PgPool | PostgresPoolConfig | string

    What the user may pass as the PostgreSQL connection option:

    • an already-constructed pg.Pool instance (we use it as-is and do NOT close it on close() — the caller owns its lifecycle), or
    • a node-postgres pool config / connection string (we lazily require('pg') and construct the pool ourselves, owning its lifecycle).

    The optional schema (the namespace for all queues) is only read from the config-object form, because that is the only case where we build the pool ourselves and can pin each connection's search_path to it. A bare connection string or an already-constructed pg.Pool always uses DEFAULT_SCHEMA — a raw pool cannot carry a schema, and we cannot set the search_path on a pool we did not create. To select a different schema, pass a config object (a connection string can be wrapped as { connectionString, schema }; a pre-built pool must be configured with the desired search_path by the caller).