Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use different application names for db connection to show context #2130

Merged
merged 1 commit into from
Feb 3, 2024

Conversation

joto
Copy link
Collaborator

@joto joto commented Feb 2, 2024

Adds a "context" parameter to database connection setup describing what this connection is for. This is something like "middle.query" or "out.pgsql". It will be added to the application name, so querying pg_stat_activity will show it like "osm2pgsql.middle.query/C2" etc.

Adds a "context" parameter to database connection setup describing what
this connection is for. This is something like "middle.query" or
"out.pgsql". It will be added to the application name, so querying
pg_stat_activity will show it like "osm2pgsql.middle.query/C2" etc.
@joto joto force-pushed the connection-context branch from 8240fa2 to 9cbc221 Compare February 2, 2024 13:54
@lonvia lonvia merged commit c22ac73 into osm2pgsql-dev:master Feb 3, 2024
26 checks passed
@joto joto deleted the connection-context branch February 4, 2024 08:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants