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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3940bf892014f2337cc5cd95c85b66f245b3725ad7ce84397c4eb4f9e3751c3c
4
- data.tar.gz: b8fc834cda0161c8ef0b44853c14f5f608c00f373e6a95481321e45611d2d5b4
3
+ metadata.gz: 724c998e7bee78818829b6a7f45134869f5f336f956467c59f7e8396724b37a6
4
+ data.tar.gz: dd68dfde6648309a5cf054829e74f762724da91ef4d79200988dfe3eff4a3599
5
5
  SHA512:
6
- metadata.gz: 463430e69b2a1f08ca411db0a4938c7243839e78f81db72455d508ff1e9de1a752889bff8a3e42486cf4859042065b0847f0b6c0216c80c9b9a36a10cf360753
7
- data.tar.gz: d31949fc719e863aa56672fd807141dfbeb521d2ce2525ca551109e09840115c3091e7130cc47617a6b836ff31853dbf12a1bb9fb4dea492b17cbf7c9bfd5c8e
6
+ metadata.gz: c658bdf247b47c6419f5add3fdbd5becf8a5eaa915a7cd76e6ebd09e441fbbf099963ea78d6fe26788e8fdaa49b14e883e283f5b713930a942cdd55cd600cc1c
7
+ data.tar.gz: 55384f3374359b4e713ed903c3cb1cebd4e06197d903ecac802383a2358fc712646cad10bc59abf7fc6558d9175d91137bedc5861dfe3b1b6f873c5bf9872504
@@ -1,3 +1,7 @@
1
+ ## 0.3.9 (2020-11-23)
2
+
3
+ - Added `--tablespace` option
4
+
1
5
  ## 0.3.8 (2020-08-17)
2
6
 
3
7
  - Colorize output
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://travis-ci.org/ankane/dexter.svg?branch=master)](https://travis-ci.org/ankane/dexter)
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
 
@@ -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
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Dexter
2
- VERSION = "0.3.8"
2
+ VERSION = "0.3.9"
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.3.8
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-08-17 00:00:00.000000000 Z
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.2
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: []