pgdexter 0.5.4 → 0.5.6
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/CHANGELOG.md +10 -0
- data/README.md +6 -2
- data/lib/dexter/client.rb +1 -0
- data/lib/dexter/indexer.rb +3 -3
- data/lib/dexter/log_parser.rb +1 -1
- data/lib/dexter/version.rb +1 -1
- metadata +5 -23
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cd90908659094245f432d2a21115b35133f47885029e08daecf2c2b2ff74d016
|
4
|
+
data.tar.gz: f11515b062b235a28543afea6b927133a2caf538c323f09b9ebc7c69fab5a6fa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 89f629b0e98dc06c407a36f495cb5f2d78622c9d148a810defadf728dabd229609e86ff7afd1b32af6db0db1c69239da6e6cd0a90f6ecaf8954a2432b0d5b9ea
|
7
|
+
data.tar.gz: 228655a66e845bcffa368914cecea70c244ef7c5fad5b8625628c600a4494b1cfad8efaf711826cf2353113fcf198feeb9d0bda16e2bd7ba29e7a723218d57d9
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,13 @@
|
|
1
|
+
## 0.5.6 (2025-02-01)
|
2
|
+
|
3
|
+
- Updated pg_query
|
4
|
+
- Fixed Docker image for `linux/arm64`
|
5
|
+
|
6
|
+
## 0.5.5 (2024-06-02)
|
7
|
+
|
8
|
+
- Updated pg_query to 5.1+ to fix installation on Windows
|
9
|
+
- Fixed error with `--pg-stat-statements` and `--min-calls`
|
10
|
+
|
1
11
|
## 0.5.4 (2024-04-03)
|
2
12
|
|
3
13
|
- Fixed issue with processing over 500 query fingerprints (introduced in 0.5.3)
|
data/README.md
CHANGED
@@ -12,8 +12,8 @@ First, install [HypoPG](https://github.com/HypoPG/hypopg) on your database serve
|
|
12
12
|
|
13
13
|
```sh
|
14
14
|
cd /tmp
|
15
|
-
curl -L https://github.com/HypoPG/hypopg/archive/1.4.
|
16
|
-
cd hypopg-1.4.
|
15
|
+
curl -L https://github.com/HypoPG/hypopg/archive/1.4.1.tar.gz | tar xz
|
16
|
+
cd hypopg-1.4.1
|
17
17
|
make
|
18
18
|
make install # may need sudo
|
19
19
|
```
|
@@ -300,6 +300,10 @@ This software wouldn’t be possible without [HypoPG](https://github.com/HypoPG/
|
|
300
300
|
|
301
301
|
This is known as the Index Selection Problem (ISP).
|
302
302
|
|
303
|
+
## History
|
304
|
+
|
305
|
+
View the [changelog](https://github.com/ankane/dexter/blob/master/CHANGELOG.md)
|
306
|
+
|
303
307
|
## Contributing
|
304
308
|
|
305
309
|
Everyone is encouraged to help improve this project. Here are a few ways you can help:
|
data/lib/dexter/client.rb
CHANGED
@@ -64,6 +64,7 @@ module Dexter
|
|
64
64
|
|
65
65
|
o.separator "Processing options:"
|
66
66
|
o.integer "--interval", "time to wait between processing queries, in seconds", default: 60
|
67
|
+
# TODO change to integer in 0.6.0
|
67
68
|
o.float "--min-calls", "only process queries that have been called a certain number of times", default: 0
|
68
69
|
o.float "--min-time", "only process queries that have consumed a certain amount of DB time, in minutes", default: 0
|
69
70
|
o.separator ""
|
data/lib/dexter/indexer.rb
CHANGED
@@ -86,7 +86,7 @@ module Dexter
|
|
86
86
|
end
|
87
87
|
|
88
88
|
# remove system tables
|
89
|
-
tables.delete_if { |t| t.start_with?("information_schema."
|
89
|
+
tables.delete_if { |t| t.start_with?("information_schema.", "pg_catalog.") }
|
90
90
|
|
91
91
|
queries.each do |query|
|
92
92
|
query.candidate_tables = !query.missing_tables && query.tables.any? { |t| tables.include?(t) }
|
@@ -513,7 +513,7 @@ module Dexter
|
|
513
513
|
# set connect timeout if none set
|
514
514
|
ENV["PGCONNECT_TIMEOUT"] ||= "3"
|
515
515
|
|
516
|
-
if @options[:dbname]
|
516
|
+
if @options[:dbname].start_with?("postgres://", "postgresql://")
|
517
517
|
config = @options[:dbname]
|
518
518
|
else
|
519
519
|
config = {
|
@@ -682,7 +682,7 @@ module Dexter
|
|
682
682
|
ORDER BY
|
683
683
|
1
|
684
684
|
SQL
|
685
|
-
execute(sql, params: [@min_time * 60000, @min_calls]).map { |q| q["query"] }
|
685
|
+
execute(sql, params: [@min_time * 60000, @min_calls.to_i]).map { |q| q["query"] }
|
686
686
|
end
|
687
687
|
|
688
688
|
def with_advisory_lock
|
data/lib/dexter/log_parser.rb
CHANGED
data/lib/dexter/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pgdexter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrew Kane
|
8
|
-
autorequire:
|
9
8
|
bindir: exe
|
10
9
|
cert_chain: []
|
11
|
-
date:
|
10
|
+
date: 2025-02-01 00:00:00.000000000 Z
|
12
11
|
dependencies:
|
13
12
|
- !ruby/object:Gem::Dependency
|
14
13
|
name: csv
|
@@ -24,20 +23,6 @@ dependencies:
|
|
24
23
|
- - ">="
|
25
24
|
- !ruby/object:Gem::Version
|
26
25
|
version: '0'
|
27
|
-
- !ruby/object:Gem::Dependency
|
28
|
-
name: google-protobuf
|
29
|
-
requirement: !ruby/object:Gem::Requirement
|
30
|
-
requirements:
|
31
|
-
- - "<"
|
32
|
-
- !ruby/object:Gem::Version
|
33
|
-
version: '4'
|
34
|
-
type: :runtime
|
35
|
-
prerelease: false
|
36
|
-
version_requirements: !ruby/object:Gem::Requirement
|
37
|
-
requirements:
|
38
|
-
- - "<"
|
39
|
-
- !ruby/object:Gem::Version
|
40
|
-
version: '4'
|
41
26
|
- !ruby/object:Gem::Dependency
|
42
27
|
name: pg
|
43
28
|
requirement: !ruby/object:Gem::Requirement
|
@@ -58,14 +43,14 @@ dependencies:
|
|
58
43
|
requirements:
|
59
44
|
- - "~>"
|
60
45
|
- !ruby/object:Gem::Version
|
61
|
-
version: '
|
46
|
+
version: '6'
|
62
47
|
type: :runtime
|
63
48
|
prerelease: false
|
64
49
|
version_requirements: !ruby/object:Gem::Requirement
|
65
50
|
requirements:
|
66
51
|
- - "~>"
|
67
52
|
- !ruby/object:Gem::Version
|
68
|
-
version: '
|
53
|
+
version: '6'
|
69
54
|
- !ruby/object:Gem::Dependency
|
70
55
|
name: slop
|
71
56
|
requirement: !ruby/object:Gem::Requirement
|
@@ -80,7 +65,6 @@ dependencies:
|
|
80
65
|
- - ">="
|
81
66
|
- !ruby/object:Gem::Version
|
82
67
|
version: 4.10.1
|
83
|
-
description:
|
84
68
|
email: andrew@ankane.org
|
85
69
|
executables:
|
86
70
|
- dexter
|
@@ -109,7 +93,6 @@ homepage: https://github.com/ankane/dexter
|
|
109
93
|
licenses:
|
110
94
|
- MIT
|
111
95
|
metadata: {}
|
112
|
-
post_install_message:
|
113
96
|
rdoc_options: []
|
114
97
|
require_paths:
|
115
98
|
- lib
|
@@ -124,8 +107,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
124
107
|
- !ruby/object:Gem::Version
|
125
108
|
version: '0'
|
126
109
|
requirements: []
|
127
|
-
rubygems_version: 3.
|
128
|
-
signing_key:
|
110
|
+
rubygems_version: 3.6.2
|
129
111
|
specification_version: 4
|
130
112
|
summary: The automatic indexer for Postgres
|
131
113
|
test_files: []
|