zalando / pg_view

Get a detailed, real-time view of your PostgreSQL database and system metrics
https://pypi.python.org/pypi/pg-view
Other
496 stars 49 forks source link

Improve pg_stat_activity query. #92

Closed alexeyklyukin closed 7 years ago

alexeyklyukin commented 7 years ago

Partial changes by @CyberDem0n

When joining pg_locks there is no need to consider every single locktype independantly to figure out which rows should be used for join. Join on all possible rows with using 'IS NOT DISTINCT FROM' works the same and easy to read and support.

alexeyklyukin commented 7 years ago

👍

alexeyklyukin commented 7 years ago

👍

CyberDem0n commented 7 years ago

:+1: