From: | Ibrar Ahmed <ibrar(dot)ahmed(at)percona(dot)com> |
---|---|
To: | pgsql-hackers <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Get the statistics based on the application name and IP address |
Date: | 2022-08-08 15:21:06 |
Message-ID: | CALcuYDKv9o0rN0yhPw=K8yoottWqSvprx1R2Efz3y6qfYEn_ZQ@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
While working on pg_stat_stements, I got some questions from customers to
have statistics by application and IP address. I know that we are
collecting the
statistics by query id, user id, database id and top-level query. There is
no way to
collect the statistics based on IP address and application
name. That's possible that
multiple applications issue the same queries with the same user on the same
database. We
cannot segregate those queries from which application this query comes. I
know we can
this in the log file with log_line_prefix, but I want to see that
aggregates like call count based on IP and application
name. I did some POC and had a patch. But before sharing the patch.
I need to know if there has been any previous discussion about this topic;
by the way,
I did some Googling to find that but failed.
Thoughts?
--
Ibrar Ahmed.
Senior Software Engineer, PostgreSQL Consultant.
From | Date | Subject | |
---|---|---|---|
Next Message | Peter Geoghegan | 2022-08-08 15:25:54 | Re: Remaining case where reltuples can become distorted across multiple VACUUM operations |
Previous Message | Yugo NAGATA | 2022-08-08 15:21:02 | Re: BUG #17434: CREATE/DROP DATABASE can be executed in the same transaction with other commands |