Skip to content

Add queryid flag#463

Merged
blogh merged 9 commits into
dalibo:masterfrom
kmoppel:add-queryid-flag
Jul 10, 2026
Merged

Add queryid flag#463
blogh merged 9 commits into
dalibo:masterfrom
kmoppel:add-queryid-flag

Conversation

@kmoppel

@kmoppel kmoppel commented Jun 29, 2026

Copy link
Copy Markdown
Contributor

Add a new optional --query-id flag

To include pg_stat_activity.query_id in processlist output. Column
available since v14, depending on compute_query_id server parameter
though.

@kmoppel

kmoppel commented Jun 29, 2026

Copy link
Copy Markdown
Contributor Author

The main idea is to be able to jump directly to pg_stat_statement details in your monitoring tool of choice.

The "QUERYID" is currently displayed after "DATABASE" but we can move it around of course.

Looks like that:
Screenshot From 2026-06-29 16-26-05

@blogh

blogh commented Jul 2, 2026

Copy link
Copy Markdown
Collaborator

This is a great addition thank you for taking the time to implement it!

@blogh
blogh force-pushed the add-queryid-flag branch from 20713d4 to 070561c Compare July 10, 2026 07:17
@blogh

blogh commented Jul 10, 2026

Copy link
Copy Markdown
Collaborator

I just rebased

@blogh
blogh merged commit f407dca into dalibo:master Jul 10, 2026
3 checks passed
@blogh

blogh commented Jul 10, 2026

Copy link
Copy Markdown
Collaborator

Thanks again !

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