Skip to content

Add Database.prototype.on('connect') event #220

Open
@alik-datsko

Description

@alik-datsko

It would be great if we could check pg_backend_pid before executing the query.
When pg closed an idle connection, it creates a new one along with the query. At this moment I would like to create a link pg_backend_pid => user_id (session variables or a table insert).
This is necessary for the organization of RLS at the database level.
I would be grateful if you enable this feature or suggest an worarround.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions