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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fe3a00850cccac8c36536d08a519790103053c9b058d61754f834c44cfb0d4eb
4
- data.tar.gz: e7ae77f4353d7f27ca04f1a59aae6cf785f8e0dddac2f276e6a0973b4beb60e7
3
+ metadata.gz: 8c69fbbfe2cc6c474e61c2350f2e2b70670b0c28c17146ed7393ae6e2ebba518
4
+ data.tar.gz: 2496d325e1b0a32adcd301ba87bd272ae06e4f14a98537f36302f89f4d627fa1
5
5
  SHA512:
6
- metadata.gz: 89d0bc08fd97968e725fea80a23d70835853acbe74648a052299b62a5e343820b36f0a76ecb3cb207d1443b47fc5d43154b40a7a0e39be518719f2c3ef589398
7
- data.tar.gz: df4e987d43c13dd0d3866feefc4cfe2cf5b84c8519fb854d54e169f42ab0909b07890893498dd2e30635e36645630647db9451b2c32de737c345ac52b6ed3205
6
+ metadata.gz: 1fe1bef91fee759752b2217f3ffcf3f47eba8f5f05b21d5a9e2ad3e4955316c7d88c4b735219d917a7c776a0e71ca12653ed1e79d610d367df8241d7a5893779
7
+ data.tar.gz: ecdbb066253e1d49a5f1ec8c987675b6c46ca7a139b6ca1b4a3110588cb22dd56101182a65c92b3727d64b9b61358c1d8014c9231a5326a311f40c6c15cea186
data/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ ## 3.5.0 (2024-05-21)
2
+
3
+ - Added materialized views to space page and `relation_sizes` method
4
+ - Added Linux package for Debian 12
5
+ - Fixed error with `slow_queries` method
6
+
1
7
  ## 3.4.1 (2024-02-07)
2
8
 
3
9
  - Added current stats to query details page
@@ -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
 
@@ -10,7 +10,7 @@ module PgHero
10
10
  SELECT
11
11
  n.nspname AS schema,
12
12
  c.relname AS relation,
13
- CASE WHEN c.relkind = 'r' THEN 'table' ELSE 'index' END AS type,
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
@@ -1,3 +1,3 @@
1
1
  module PgHero
2
- VERSION = "3.4.1"
2
+ VERSION = "3.5.0"
3
3
  end
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.1
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-02-07 00:00:00.000000000 Z
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.3
127
+ rubygems_version: 3.5.9
128
128
  signing_key:
129
129
  specification_version: 4
130
130
  summary: A performance dashboard for Postgres