pgdexter 0.3.8 → 0.3.9
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 +1 -1
- data/lib/dexter/client.rb +1 -0
- data/lib/dexter/indexer.rb +3 -1
- data/lib/dexter/version.rb +1 -1
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 724c998e7bee78818829b6a7f45134869f5f336f956467c59f7e8396724b37a6
|
4
|
+
data.tar.gz: dd68dfde6648309a5cf054829e74f762724da91ef4d79200988dfe3eff4a3599
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c658bdf247b47c6419f5add3fdbd5becf8a5eaa915a7cd76e6ebd09e441fbbf099963ea78d6fe26788e8fdaa49b14e883e283f5b713930a942cdd55cd600cc1c
|
7
|
+
data.tar.gz: 55384f3374359b4e713ed903c3cb1cebd4e06197d903ecac802383a2358fc712646cad10bc59abf7fc6558d9175d91137bedc5861dfe3b1b6f873c5bf9872504
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -4,7 +4,7 @@ The automatic indexer for Postgres
|
|
4
4
|
|
5
5
|
[Read about how it works](https://ankane.org/introducing-dexter)
|
6
6
|
|
7
|
-
[![Build Status](https://
|
7
|
+
[![Build Status](https://github.com/ankane/dexter/workflows/build/badge.svg?branch=master)](https://github.com/ankane/dexter/actions)
|
8
8
|
|
9
9
|
## Installation
|
10
10
|
|
data/lib/dexter/client.rb
CHANGED
@@ -56,6 +56,7 @@ module Dexter
|
|
56
56
|
o.boolean "--pg-stat-activity", "use pg_stat_activity", default: false, help: false
|
57
57
|
o.boolean "--pg-stat-statements", "use pg_stat_statements", default: false, help: false
|
58
58
|
o.string "-s", "--statement", "process a single statement"
|
59
|
+
o.string "--tablespace", "tablespace to create indexes"
|
59
60
|
o.on "-v", "--version", "print the version" do
|
60
61
|
log Dexter::VERSION
|
61
62
|
exit
|
data/lib/dexter/indexer.rb
CHANGED
@@ -4,6 +4,7 @@ module Dexter
|
|
4
4
|
|
5
5
|
def initialize(options)
|
6
6
|
@create = options[:create]
|
7
|
+
@tablespace = options[:tablespace]
|
7
8
|
@log_level = options[:log_level]
|
8
9
|
@exclude_tables = options[:exclude]
|
9
10
|
@include_tables = Array(options[:include].split(",")) if options[:include]
|
@@ -479,7 +480,8 @@ module Dexter
|
|
479
480
|
with_advisory_lock do
|
480
481
|
new_indexes.each do |index|
|
481
482
|
unless index_exists?(index)
|
482
|
-
statement = "CREATE INDEX CONCURRENTLY ON #{quote_ident(index[:table])} (#{index[:columns].map { |c| quote_ident(c) }.join(", ")})"
|
483
|
+
statement = String.new("CREATE INDEX CONCURRENTLY ON #{quote_ident(index[:table])} (#{index[:columns].map { |c| quote_ident(c) }.join(", ")})")
|
484
|
+
statement << " TABLESPACE #{quote_ident(@tablespace)}" if @tablespace
|
483
485
|
log "Creating index: #{statement}"
|
484
486
|
started_at = Time.now
|
485
487
|
begin
|
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.3.
|
4
|
+
version: 0.3.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrew Kane
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-11-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: slop
|
@@ -94,7 +94,7 @@ dependencies:
|
|
94
94
|
- - ">="
|
95
95
|
- !ruby/object:Gem::Version
|
96
96
|
version: '0'
|
97
|
-
description:
|
97
|
+
description:
|
98
98
|
email: andrew@chartkick.com
|
99
99
|
executables:
|
100
100
|
- dexter
|
@@ -121,7 +121,7 @@ homepage: https://github.com/ankane/dexter
|
|
121
121
|
licenses:
|
122
122
|
- MIT
|
123
123
|
metadata: {}
|
124
|
-
post_install_message:
|
124
|
+
post_install_message:
|
125
125
|
rdoc_options: []
|
126
126
|
require_paths:
|
127
127
|
- lib
|
@@ -136,8 +136,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
136
136
|
- !ruby/object:Gem::Version
|
137
137
|
version: '0'
|
138
138
|
requirements: []
|
139
|
-
rubygems_version: 3.1.
|
140
|
-
signing_key:
|
139
|
+
rubygems_version: 3.1.4
|
140
|
+
signing_key:
|
141
141
|
specification_version: 4
|
142
142
|
summary: The automatic indexer for Postgres
|
143
143
|
test_files: []
|