ruby-pg-extras 5.3.0 → 5.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4db68e685bfd403720469ba3b28c3f0c8eeac489dd8c2ec030a7cc2b12a45f8c
4
- data.tar.gz: 39097e6d101eff027ce4ac09b4c04a89eca69c697c3b9bd270123a2052cf3b26
3
+ metadata.gz: 79aedbc5d3b30aadde2362bceebac04fe7bc3d3a27e8fc47f1f6b6c0ae287616
4
+ data.tar.gz: ceea8978021edc90088a012a1fec34c0502da15f5ce60356074d741bcbc82682
5
5
  SHA512:
6
- metadata.gz: b8fb4fe982ee57b2641625a598488c870b5c45d3ac06a380c98139c8c20cfc27e5d139ce029902fe7ee509fbcbcfb3764c4b12823252ec3e47dbad31a07cb2bb
7
- data.tar.gz: a4751fe92639df23050110e6359b8dc1a6d3ec9746893d0c0a248fc007723a24eea146ee82d013347e7a69c5d76ad79f0fe834548eff9c18a9d2dbfed3d95dce
6
+ metadata.gz: 6cd117553f43c9b211cb07e313f2b83932992a38e5217bdee70dd9d3688e441919bc0dd5a3db32cd7dc20a5c35dddd7b61e34a26ba403f690f3a9d3531a16eb4
7
+ data.tar.gz: 484c04040d0d1579ce01e9874fd7f7df4dbc6209f3e262e55fc6b77246072c1315962e223f915b5311fe08a89268f7ac0193a04e50179307001ac37e5690f0e4
@@ -27,6 +27,8 @@ module RubyPgExtras
27
27
  buffercache_usage ssl_used connections
28
28
  )
29
29
 
30
+ DEFAULT_SCHEMA = ENV["PG_EXTRAS_SCHEMA"] || 'public'
31
+
30
32
  DEFAULT_ARGS = Hash.new({}).merge({
31
33
  calls: { limit: 10 },
32
34
  calls_legacy: { limit: 10 },
@@ -37,17 +39,17 @@ module RubyPgExtras
37
39
  outliers_legacy: { limit: 10 },
38
40
  buffercache_stats: { limit: 10 },
39
41
  buffercache_usage: { limit: 20 },
40
- unused_indexes: { max_scans: 50, schema: "public" },
42
+ unused_indexes: { max_scans: 50, schema: DEFAULT_SCHEMA },
41
43
  null_indexes: { min_relation_size_mb: 10 },
42
- index_usage: { schema: "public" },
43
- index_cache_hit: { schema: "public" },
44
- table_cache_hit: { schema: "public" },
45
- index_scans: { schema: "public" },
46
- cache_hit: { schema: "public" },
47
- seq_scans: { schema: "public" },
48
- table_index_scans: { schema: "public" },
49
- records_rank: { schema: "public" },
50
- tables: { schema: "public" },
44
+ index_usage: { schema: DEFAULT_SCHEMA },
45
+ index_cache_hit: { schema: DEFAULT_SCHEMA },
46
+ table_cache_hit: { schema: DEFAULT_SCHEMA },
47
+ index_scans: { schema: DEFAULT_SCHEMA },
48
+ cache_hit: { schema: DEFAULT_SCHEMA },
49
+ seq_scans: { schema: DEFAULT_SCHEMA },
50
+ table_index_scans: { schema: DEFAULT_SCHEMA },
51
+ records_rank: { schema: DEFAULT_SCHEMA },
52
+ tables: { schema: DEFAULT_SCHEMA },
51
53
  kill_pid: { pid: 0 }
52
54
  })
53
55
 
@@ -6,6 +6,7 @@ SELECT
6
6
  pg_size_pretty(pg_relation_size(c.oid)) AS index_size,
7
7
  i.indisunique AS unique,
8
8
  a.attname AS indexed_column,
9
+ s.tablename AS table,
9
10
  CASE s.null_frac
10
11
  WHEN 0 THEN ''
11
12
  ELSE to_char(s.null_frac * 100, '999.00%%')
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RubyPgExtras
4
- VERSION = "5.3.0"
4
+ VERSION = "5.3.1"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby-pg-extras
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.3.0
4
+ version: 5.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - pawurb
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-08-25 00:00:00.000000000 Z
11
+ date: 2023-12-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pg
@@ -144,7 +144,7 @@ licenses:
144
144
  - MIT
145
145
  metadata:
146
146
  rubygems_mfa_required: 'true'
147
- post_install_message:
147
+ post_install_message:
148
148
  rdoc_options: []
149
149
  require_paths:
150
150
  - lib
@@ -159,8 +159,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
159
159
  - !ruby/object:Gem::Version
160
160
  version: '0'
161
161
  requirements: []
162
- rubygems_version: 3.1.6
163
- signing_key:
162
+ rubygems_version: 3.3.7
163
+ signing_key:
164
164
  specification_version: 4
165
165
  summary: Ruby PostgreSQL performance database insights
166
166
  test_files: