ruby-pg-extras 2.2.0 → 2.3.0
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 +4 -4
- data/README.md +9 -1
- data/lib/ruby-pg-extras/queries/pg_stat_statements_reset.sql +3 -0
- data/lib/ruby-pg-extras/version.rb +1 -1
- data/lib/ruby-pg-extras.rb +2 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a93ebb6cb69e2591e7e9c327b326edf9353105b985f0023ec00deceec631e398
|
4
|
+
data.tar.gz: 0e6b50933c072c9c04fba24875d71c0c561ecf4b5a0cb60f8cb66df9cb000075
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b855303347b32b4e20e9a9061f058843f8a337968344d3517a14a70000849691f378e077163720f487c2798df441c1a59f7f53e80b6d45ef2fe7796854cf79f6
|
7
|
+
data.tar.gz: 4429a4634e5b154dca182bdb232c64009178f287a00b1c58594dd089221ab2cc1520522ba2112153dd645905685d7751b7c51f9d9a87968d0ab416af93797d26
|
data/README.md
CHANGED
@@ -167,7 +167,7 @@ This method displays values for selected PostgreSQL settings. You can compare th
|
|
167
167
|
|
168
168
|
[More info](https://pawelurbanek.com/postgresql-fix-performance#cache-hit)
|
169
169
|
|
170
|
-
###
|
170
|
+
### `ssl_used`
|
171
171
|
|
172
172
|
```ruby
|
173
173
|
|
@@ -541,6 +541,14 @@ RubyPGExtras.kill_all
|
|
541
541
|
|
542
542
|
This commands kills all the currently active connections to the database. It can be useful as a last resort when your database is stuck in a deadlock.
|
543
543
|
|
544
|
+
### `pg_stat_statements_reset`
|
545
|
+
|
546
|
+
```ruby
|
547
|
+
RubyPGExtras.pg_stat_statements_reset
|
548
|
+
```
|
549
|
+
|
550
|
+
This command discards all statistics gathered so far by pg_stat_statements.
|
551
|
+
|
544
552
|
### `buffercache_stats`
|
545
553
|
|
546
554
|
```ruby
|
data/lib/ruby-pg-extras.rb
CHANGED
@@ -16,7 +16,8 @@ module RubyPGExtras
|
|
16
16
|
records_rank seq_scans table_indexes_size
|
17
17
|
table_size total_index_size total_table_size
|
18
18
|
unused_indexes duplicate_indexes vacuum_stats kill_all
|
19
|
-
buffercache_stats
|
19
|
+
pg_stat_statements_reset buffercache_stats
|
20
|
+
buffercache_usage ssl_used
|
20
21
|
)
|
21
22
|
|
22
23
|
DEFAULT_ARGS = Hash.new({}).merge({
|
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: 2.
|
4
|
+
version: 2.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- pawurb
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-10-
|
11
|
+
date: 2021-10-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pg
|
@@ -104,6 +104,7 @@ files:
|
|
104
104
|
- lib/ruby-pg-extras/queries/null_indexes.sql
|
105
105
|
- lib/ruby-pg-extras/queries/outliers.sql
|
106
106
|
- lib/ruby-pg-extras/queries/outliers_legacy.sql
|
107
|
+
- lib/ruby-pg-extras/queries/pg_stat_statements_reset.sql
|
107
108
|
- lib/ruby-pg-extras/queries/records_rank.sql
|
108
109
|
- lib/ruby-pg-extras/queries/seq_scans.sql
|
109
110
|
- lib/ruby-pg-extras/queries/ssl_used.sql
|