Skip to content

[Feature Request] Allow to manage reset query for connection #780

Closed
@alexeynavarkin

Description

@alexeynavarkin

Every connection on release calls reset, which results in evaluation of this statements (for postgres caps):

SELECT pg_advisory_unlock_all();
CLOSE ALL;
UNLISTEN *;
RESET ALL;

So if you use postgres your caps predefined. But not every project uses this capabilities, so this calls looks like overhead.

Maybe add interface to specify server caps explicitly, this will reduce reset statements to only useful ones or even noop at all.

Something like pass server caps in init of connection or/and connection pool.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions