Skip to content

add application_name_add_host setting - #1393

Open
murex971 wants to merge 3 commits into
pgdogdev:mainfrom
murex971:murex-host-append
Open

add application_name_add_host setting#1393
murex971 wants to merge 3 commits into
pgdogdev:mainfrom
murex971:murex-host-append

Conversation

@murex971

Copy link
Copy Markdown
Contributor

Summary

  • Add [general] application_name_add_host (default false, env PGDOG_APPLICATION_NAME_ADD_HOST) to append the client address to application_name as {name} - {ip}:{port}.
  • Apply the suffix at login and again when the client changes application_name via SET / set_config, so pg_stat_activity can identify the source of queries.
  • If the client sends no application_name, use an empty prefix ( - 10.0.0.5:1234) rather than PgBouncer’s "app" default.

closes #253

@codecov

codecov Bot commented Aug 19, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 99.13043% with 2 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
pgdog/src/frontend/client/query_engine/query.rs 83.33% 1 Missing ⚠️
pgdog/src/frontend/client/query_engine/set.rs 99.02% 1 Missing ⚠️

📢 Thoughts on this report? Let us know!

Comment thread pgdog-config/src/general.rs
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.

Add "application_name_add_host" setting

3 participants