Set postgres application_name when connecting #3
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Set the PostgreSQL application_name when opening database connections so sessions are identifiable in pg_stat_activity and monitoring.
Why:
Suggested implementation:
Acceptance criteria:
Also include the application version in the PostgreSQL application_name value if practical, so connections are attributable to both the service and the running build version. For example: relspecgo/1.2.3 or similar. This would make it easier to correlate behavior with deployments and identify which version opened a given session in pg_stat_activity.