-
Notifications
You must be signed in to change notification settings - Fork 180
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
Citus support #424
Comments
Hi @ivyazmitinov, thank you for your feature request. I've put together a draft PR to start adding support for Citus at #426, it just queries I don't have the system setup (Citus) to test this on my side, so it'd be greatly appreciated if you could give it a try and report back. Thank you! See https://github.com/dalibo/pg_activity?tab=readme-ov-file#from-source-using-git for how to checkout and install the development version; the target branch for #426 is named |
Amazing, thank you @dlax! |
Hi, Thx for the patch @dlax. We should probably add these columns for citus [1]:
I am not sure the former I also think that in the context of Citus joining into The @ivyazmitinov: I'd love to have you opinion, I am not a user of Citus, I only too a quick look at the docs. [1] https://www.citusdata.com/blog/2022/07/21/citus-stat-activity-views-for-distributed-postgres/ |
Using |
Absolutly agree, thanks @blogh!
It is: sometime only one of the distributed queries underperforms, so it is necessary to get down and troubleshoot individual worker I was not able to test it out myself yet, but definitely will this week 🙂 |
I was also thinking that, since distributed queries are in a parent-child relationship with a main query on a coordinator, it would be greate to organize a tree structure, similar to subprocesses in |
So, I was asble to test out the implementation. Good news is that it works,
I will also try to tackle those issues on the base of #426 later |
Citus is a (fairly) popular extension that adds horizontal scaling capabilities for Postgres. Since with Citus queries become distributed,
pg_stat_activity
is not sufficient enough to track them, so Citus provides its own views, likecitus_stat_activity
.It would be great improvement for DBAs who is using
pg_activity
for Citus cluster management to support those facilities out-of-box 🙂The text was updated successfully, but these errors were encountered: