pgdexter 0.5.4 → 0.5.5

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: 037ac99e7dff1ac6edb6fddf8e85ae8357c6af25bc83dde1e5281f87c247ec4c
4
- data.tar.gz: 1256486b21d6d6f91186a1a4e3ca0c1c39c7e318b26335d5cd86f82252b7ec42
3
+ metadata.gz: 3137009a5f3efa2ec2ba4aea403b0de5429331245f34ccc70bb98d8d12cbe518
4
+ data.tar.gz: 04e80dd31a64fd1654edad7e866697b6c87c489462ba497546489267cbef05d2
5
5
  SHA512:
6
- metadata.gz: 4bc5d0355a53b867da9710a23edc7a898bd23f112ee93beee246b04584175609ac750f9819cb1be041b26f36db407363601e57a5cb8effb49214148c9ef688cb
7
- data.tar.gz: a9019542cfefe04789426309834f7688cc59b8dea8d2d4f3d4559b349ae5bb72bf56de4bcd7ee54ec2483f41df85edec8dfd62f4e2e4db79d30117a874a02fd8
6
+ metadata.gz: cbde2900ff5de0d67b0472af0c87232e5492f150efca54641d0334a8c87ab6fd14458d885c4e313e236fb23f2b6ad0278b40ba4e43ac7be248ca54c12fb0aa6a
7
+ data.tar.gz: 0062ae2f3584e289bcb90b0c31e02aa964ac32d38d20cbfcef1e8ac18be0c6fcf74580d0d53e27ac760a9e537b8d6b124945cebddee16beee3bcdd1bf6d98caa
data/CHANGELOG.md CHANGED
@@ -1,3 +1,8 @@
1
+ ## 0.5.5 (2024-06-02)
2
+
3
+ - Updated pg_query to 5.1+ to fix installation on Windows
4
+ - Fixed error with `--pg-stat-statements` and `--min-calls`
5
+
1
6
  ## 0.5.4 (2024-04-03)
2
7
 
3
8
  - 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.0.tar.gz | tar xz
16
- cd hypopg-1.4.0
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
  ```
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 ""
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Dexter
2
- VERSION = "0.5.4"
2
+ VERSION = "0.5.5"
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.5.4
4
+ version: 0.5.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Kane
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-04-03 00:00:00.000000000 Z
11
+ date: 2024-06-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: csv
@@ -58,14 +58,14 @@ dependencies:
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: '4'
61
+ version: '5.1'
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: '4'
68
+ version: '5.1'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: slop
71
71
  requirement: !ruby/object:Gem::Requirement
@@ -124,7 +124,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
124
124
  - !ruby/object:Gem::Version
125
125
  version: '0'
126
126
  requirements: []
127
- rubygems_version: 3.5.3
127
+ rubygems_version: 3.5.9
128
128
  signing_key:
129
129
  specification_version: 4
130
130
  summary: The automatic indexer for Postgres