You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Can we improved or customization of pg_stat_activity and pg_stat_statements such as
Age of the query
Ignore idle connections or option to skip it
Can it be added additional field of max_time
Or something as :
select d.datname, s.calls,s.max_time ,s.mean_time,s.total_time,s.stddev_time, s.rows ,s.shared_blks_hit , s.shared_blks_read,s.temp_blks_written, s.query
from pg_stat_statements s,pg_database d
where s.dbid = d.oid
and d.datname not in ('rdsadmin','postgres') -- option to ignore db's if extenstion shared location, `postgres->public`
and s.total_time > 1
order by s.total_time, s.mean_time, s.max_time, s.calls desc;
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Can we improved or customization of
pg_stat_activity
andpg_stat_statements
such asidle
connections or option to skip itmax_time
Beta Was this translation helpful? Give feedback.
All reactions