mirror of
https://github.com/percona/pg_stat_monitor.git
synced 2026-02-04 05:56:21 +00:00
PG-338: Calls count is not correct in PG-13.; PG-331: Default values for better presentation in PMM (#191)
* PG-338: Calls count is not correct in PG-13. * PG-331: Defaults values for better presentation in PMM. * Update pg_stat_monitor.c Co-authored-by: Lenz Grimmer <lenz.grimmer@percona.com> Co-authored-by: Hamid Akhtar <hamid.akhtar@gmail.com> Co-authored-by: Ibrar Ahmad <ibrar.ahmad@gmail.com>
This commit is contained in:
@@ -1791,7 +1791,12 @@ pg_stat_monitor_internal(FunctionCallInfo fcinfo,
|
||||
tmp = e->counters;
|
||||
SpinLockRelease(&e->mutex);
|
||||
}
|
||||
if (!IsBucketValid(bucketid))
|
||||
|
||||
/* In case that query plan is enabled, there is no need to show 0 planid query */
|
||||
if (tmp.info.cmd_type == CMD_SELECT && PGSM_QUERY_PLAN && planid == 0)
|
||||
continue;
|
||||
|
||||
if (!IsBucketValid(bucketid))
|
||||
{
|
||||
if (tmp.state == PGSS_FINISHED)
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user