pgdexter 0.4.1 → 0.4.2

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: 109808872c6a579e6ce82956d5b2b1da8c66af7c85fae3d5984367e374484eb2
4
- data.tar.gz: 6fe0f25f316afd84c287ba2fefe5076846c8a572bf2cbee406843abf632ddb2d
3
+ metadata.gz: 8e8097505929a24e8c038c7fe69ac667faaa05008a3aa94971501fc4b9f15157
4
+ data.tar.gz: a08bf061493ed984103ce768af1347d81250c51b4f068f69d3688a1e4fd25514
5
5
  SHA512:
6
- metadata.gz: c2e5b5d80869c5c90b234af5edbb6d0c0e6118a3dc7191c2d7169209c7ae1505329fb18ea5e3803b045a527dd20b2909a9b2067732dfa030bbce0a931fc88954
7
- data.tar.gz: 03d139a0f6ac0e967ad4f98685a6d8e513eab0b2022c7a0f7c6d27eca0da9b6441c30480a19acacf5c5f5f0ec762a7243331c3ee752b071015800a98043cad3b
6
+ metadata.gz: 9c2d99ecbd5fd68e460f25982fe31d1149d9682a7065cfb674d24785f78138ab04d94bcdbf3b81f2d8065468f6531bbaea1e0593bd8fd7ab4dcdb2b061276c1e
7
+ data.tar.gz: 0e55cc589470760d317e3ba0e895d7ce5e24cd79517cf02c59aaba1caf36eb1f9785725eedc61e7402d480a61870828aaf2b33683f8ca58223f380d518c7df9c
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 0.4.2 (2023-01-29)
2
+
3
+ - Fixed `--pg-stat-statements` option for Postgres 13+
4
+
1
5
  ## 0.4.1 (2022-10-15)
2
6
 
3
7
  - Added support for `json` format
data/README.md CHANGED
@@ -190,11 +190,13 @@ dexter --log-sql --log-level debug2
190
190
 
191
191
  ## Hosted Postgres
192
192
 
193
- Some hosted providers like Amazon RDS and Heroku do not support the HypoPG extension, which Dexter needs to run. See [how to use Dexter](guides/Hosted-Postgres.md) in these cases. To request the extension:
193
+ The `hypopg` extension, which Dexter needs to run, is available on [these providers](https://github.com/ankane/dexter/issues/44).
194
+
195
+ For other providers, see [this guide](guides/Hosted-Postgres.md). To request a new extension:
194
196
 
195
197
  - Amazon RDS - follow the instructions on [this page](https://aws.amazon.com/rds/postgresql/faqs/)
196
- - Google Cloud SQL - star the [feature request](https://issuetracker.google.com/issues/69250435)
197
- - DigitalOcean Managed Databases - follow the instructions on [this page](https://docs.digitalocean.com/products/databases/postgresql/details/supported-extensions/#supported-extensions)
198
+ - Google Cloud SQL - vote or comment on [this page](https://issuetracker.google.com/issues/69250435)
199
+ - DigitalOcean Managed Databases - vote or comment on [this page](https://ideas.digitalocean.com/app-framework-services/p/support-hypopg-for-postgres)
198
200
 
199
201
  ## Additional Installation Methods
200
202
 
@@ -620,6 +620,7 @@ module Dexter
620
620
  end
621
621
 
622
622
  def stat_statements
623
+ total_time = server_version_num >= 130000 ? "(total_plan_time + total_exec_time)" : "total_time"
623
624
  result = execute <<-SQL
624
625
  SELECT
625
626
  DISTINCT query
@@ -629,7 +630,7 @@ module Dexter
629
630
  pg_database ON pg_database.oid = pg_stat_statements.dbid
630
631
  WHERE
631
632
  datname = current_database()
632
- AND total_time >= #{@min_time * 60000}
633
+ AND #{total_time} >= #{@min_time * 60000}
633
634
  AND calls >= #{@min_calls}
634
635
  ORDER BY
635
636
  1
@@ -1,3 +1,3 @@
1
1
  module Dexter
2
- VERSION = "0.4.1"
2
+ VERSION = "0.4.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pgdexter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
4
+ version: 0.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Kane
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-10-15 00:00:00.000000000 Z
11
+ date: 2023-01-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: slop
@@ -95,7 +95,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
95
95
  - !ruby/object:Gem::Version
96
96
  version: '0'
97
97
  requirements: []
98
- rubygems_version: 3.3.7
98
+ rubygems_version: 3.4.1
99
99
  signing_key:
100
100
  specification_version: 4
101
101
  summary: The automatic indexer for Postgres