pghero 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of pghero might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/README.md +0 -1
- data/app/controllers/pg_hero/home_controller.rb +2 -2
- data/app/views/layouts/pg_hero/application.html.erb +1 -1
- data/lib/pghero.rb +1 -1
- data/lib/pghero/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 445cd3bca08cacab61c7fbf4d6f910905cb28677
|
4
|
+
data.tar.gz: 22a7465af2781805eeafb47cd8208283a82f460f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e107fd5f5edab6f689ae6cf7643820ef36d57364f06e9af6926a99d2c41db0f4cdcafaa38cbaf7492b724f5c966bffc8b9052f0e4ae93c5e998e597b85af1782
|
7
|
+
data.tar.gz: 2716c641985e431380c0162127d66be3cb473d7089678735482ebe188132a22de0d308a084cdbacea61290dbdad876ea02b6196b6dea0931e3c6a8ad640dbd73
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -69,7 +69,6 @@ end
|
|
69
69
|
## TODO
|
70
70
|
|
71
71
|
- show exactly which indexes to add
|
72
|
-
- use `pg_stat_statements` extension for more detailed insights
|
73
72
|
- more detailed explanations on dashboard
|
74
73
|
|
75
74
|
Know a bit about PostgreSQL? [Suggestions](https://github.com/ankane/pghero/issues) are greatly appreciated.
|
@@ -33,12 +33,12 @@ module PgHero
|
|
33
33
|
end
|
34
34
|
|
35
35
|
def queries
|
36
|
-
@title = "Queries"
|
36
|
+
@title = "Live Queries"
|
37
37
|
@running_queries = PgHero.running_queries
|
38
38
|
end
|
39
39
|
|
40
40
|
def query_stats
|
41
|
-
@title = "
|
41
|
+
@title = "Queries"
|
42
42
|
@query_stats = PgHero.query_stats
|
43
43
|
end
|
44
44
|
|
data/lib/pghero.rb
CHANGED
@@ -236,7 +236,7 @@ module PgHero
|
|
236
236
|
end
|
237
237
|
|
238
238
|
def query_stats_available?
|
239
|
-
select_all("SELECT COUNT(*) AS count FROM pg_available_extensions WHERE name = 'pg_stat_statements'").first["count"].to_i > 0
|
239
|
+
select_all("SELECT COUNT(*) AS count FROM pg_available_extensions WHERE name = 'pg_stat_statements' AND installed_version IS NOT NULL").first["count"].to_i > 0
|
240
240
|
end
|
241
241
|
|
242
242
|
def query_stats_enabled?
|
data/lib/pghero/version.rb
CHANGED