pghero 3.4.1 → 3.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/lib/pghero/methods/query_stats.rb +1 -1
- data/lib/pghero/methods/space.rb +2 -2
- data/lib/pghero/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8c69fbbfe2cc6c474e61c2350f2e2b70670b0c28c17146ed7393ae6e2ebba518
|
4
|
+
data.tar.gz: 2496d325e1b0a32adcd301ba87bd272ae06e4f14a98537f36302f89f4d627fa1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1fe1bef91fee759752b2217f3ffcf3f47eba8f5f05b21d5a9e2ad3e4955316c7d88c4b735219d917a7c776a0e71ca12653ed1e79d610d367df8241d7a5893779
|
7
|
+
data.tar.gz: ecdbb066253e1d49a5f1ec8c987675b6c46ca7a139b6ca1b4a3110588cb22dd56101182a65c92b3727d64b9b61358c1d8014c9231a5326a311f40c6c15cea186
|
data/CHANGELOG.md
CHANGED
@@ -168,7 +168,7 @@ module PgHero
|
|
168
168
|
end
|
169
169
|
|
170
170
|
def slow_queries(query_stats: nil, **options)
|
171
|
-
query_stats ||= self.query_stats(options)
|
171
|
+
query_stats ||= self.query_stats(**options)
|
172
172
|
query_stats.select { |q| q[:calls].to_i >= slow_query_calls.to_i && q[:average_time].to_f >= slow_query_ms.to_f }
|
173
173
|
end
|
174
174
|
|
data/lib/pghero/methods/space.rb
CHANGED
@@ -10,7 +10,7 @@ module PgHero
|
|
10
10
|
SELECT
|
11
11
|
n.nspname AS schema,
|
12
12
|
c.relname AS relation,
|
13
|
-
CASE
|
13
|
+
CASE c.relkind WHEN 'r' THEN 'table' WHEN 'm' then 'matview' ELSE 'index' END AS type,
|
14
14
|
pg_table_size(c.oid) AS size_bytes
|
15
15
|
FROM
|
16
16
|
pg_class c
|
@@ -19,7 +19,7 @@ module PgHero
|
|
19
19
|
WHERE
|
20
20
|
n.nspname NOT IN ('pg_catalog', 'information_schema')
|
21
21
|
AND n.nspname !~ '^pg_toast'
|
22
|
-
AND c.relkind IN ('r', 'i')
|
22
|
+
AND c.relkind IN ('r', 'm', 'i')
|
23
23
|
ORDER BY
|
24
24
|
pg_table_size(c.oid) DESC,
|
25
25
|
2 ASC
|
data/lib/pghero/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pghero
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.
|
4
|
+
version: 3.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrew Kane
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-05-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|
@@ -124,7 +124,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
124
124
|
- !ruby/object:Gem::Version
|
125
125
|
version: '0'
|
126
126
|
requirements: []
|
127
|
-
rubygems_version: 3.5.
|
127
|
+
rubygems_version: 3.5.9
|
128
128
|
signing_key:
|
129
129
|
specification_version: 4
|
130
130
|
summary: A performance dashboard for Postgres
|