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 +4 -4
- data/CHANGELOG.md +4 -0
- data/README.md +5 -3
- data/lib/dexter/indexer.rb +2 -1
- data/lib/dexter/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8e8097505929a24e8c038c7fe69ac667faaa05008a3aa94971501fc4b9f15157
|
4
|
+
data.tar.gz: a08bf061493ed984103ce768af1347d81250c51b4f068f69d3688a1e4fd25514
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9c2d99ecbd5fd68e460f25982fe31d1149d9682a7065cfb674d24785f78138ab04d94bcdbf3b81f2d8065468f6531bbaea1e0593bd8fd7ab4dcdb2b061276c1e
|
7
|
+
data.tar.gz: 0e55cc589470760d317e3ba0e895d7ce5e24cd79517cf02c59aaba1caf36eb1f9785725eedc61e7402d480a61870828aaf2b33683f8ca58223f380d518c7df9c
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -190,11 +190,13 @@ dexter --log-sql --log-level debug2
|
|
190
190
|
|
191
191
|
## Hosted Postgres
|
192
192
|
|
193
|
-
|
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 -
|
197
|
-
- DigitalOcean Managed Databases -
|
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
|
|
data/lib/dexter/indexer.rb
CHANGED
@@ -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
|
data/lib/dexter/version.rb
CHANGED
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.
|
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:
|
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.
|
98
|
+
rubygems_version: 3.4.1
|
99
99
|
signing_key:
|
100
100
|
specification_version: 4
|
101
101
|
summary: The automatic indexer for Postgres
|