ruby-pg-extras 5.3.0 → 5.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/ruby-pg-extras.rb +12 -10
- data/lib/ruby_pg_extras/queries/null_indexes.sql +1 -0
- data/lib/ruby_pg_extras/version.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 79aedbc5d3b30aadde2362bceebac04fe7bc3d3a27e8fc47f1f6b6c0ae287616
|
4
|
+
data.tar.gz: ceea8978021edc90088a012a1fec34c0502da15f5ce60356074d741bcbc82682
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6cd117553f43c9b211cb07e313f2b83932992a38e5217bdee70dd9d3688e441919bc0dd5a3db32cd7dc20a5c35dddd7b61e34a26ba403f690f3a9d3531a16eb4
|
7
|
+
data.tar.gz: 484c04040d0d1579ce01e9874fd7f7df4dbc6209f3e262e55fc6b77246072c1315962e223f915b5311fe08a89268f7ac0193a04e50179307001ac37e5690f0e4
|
data/lib/ruby-pg-extras.rb
CHANGED
@@ -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:
|
42
|
+
unused_indexes: { max_scans: 50, schema: DEFAULT_SCHEMA },
|
41
43
|
null_indexes: { min_relation_size_mb: 10 },
|
42
|
-
index_usage: { schema:
|
43
|
-
index_cache_hit: { schema:
|
44
|
-
table_cache_hit: { schema:
|
45
|
-
index_scans: { schema:
|
46
|
-
cache_hit: { schema:
|
47
|
-
seq_scans: { schema:
|
48
|
-
table_index_scans: { schema:
|
49
|
-
records_rank: { schema:
|
50
|
-
tables: { schema:
|
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
|
|
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.
|
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-
|
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.
|
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:
|