Skip to content

Add optional Application Name to Postgres Connection Info #228

Open
@neilt

Description

@neilt

Is your feature request related to a problem? Please describe.
Our problem is how to determine which of our applications is causing problems by observing the Postgres database connections in the Postgres Server.

Describe the solution you'd like
We have multiple applications connecting to the Postgres database and would like to be able to differentiate connections between our various applications. Traditionally, we have used the application name. We would like to be able to optionally specify the application name in PostgresConfiguration.

Describe alternatives you've considered
Any solution would work as long as we can determine which application is connected to which pids in the Postgres server.

We thought about just using SET application_name = 'test_activity'; after the connection is established, but could not figure out how to get this set in all connections from the pool in all threads.

Additional context
None.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions