ruby-pg-extras 2.2.0 → 2.3.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: 67ee92c7a3fefa174bf843ee90a6d0247968726dbddfa57d83e02bec80614b3c
4
- data.tar.gz: '0893af856168f741cfe505c39415211b079202684e4472f38614f76bc6bfc7e2'
3
+ metadata.gz: a93ebb6cb69e2591e7e9c327b326edf9353105b985f0023ec00deceec631e398
4
+ data.tar.gz: 0e6b50933c072c9c04fba24875d71c0c561ecf4b5a0cb60f8cb66df9cb000075
5
5
  SHA512:
6
- metadata.gz: b63de82209cb9b52710c29360025058e88987ec14d48c5d59ab16f677512fab8d11f7042cd168358971b30421edf0910d59a69d082dc024440991cac5820ddf7
7
- data.tar.gz: 4c9bd4431a96091ba6e5ba581ae7b7493a3b49d5329e0cd85903f90dbc13477e2d519a719ff078117b9e03a0b7dc89efb263eaafc3e458a4ff5ff6beb5e6fe23
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
- ### 'ssl_used'
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
@@ -0,0 +1,3 @@
1
+ /* pg_stat_statements_reset discards statistics gathered so far by pg_stat_statements */
2
+
3
+ SELECT pg_stat_statements_reset();
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RubyPGExtras
4
- VERSION = "2.2.0"
4
+ VERSION = "2.3.0"
5
5
  end
@@ -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 buffercache_usage ssl_used
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.2.0
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-26 00:00:00.000000000 Z
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