pg_reindex 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +1 -0
- data/lib/pg-reindex.rb +1 -1
- data/pg_reindex.gemspec +1 -1
- data/spec/reindex_spec.rb +11 -0
- metadata +97 -91
- data/Gemfile.lock +0 -47
data/.gitignore
CHANGED
data/lib/pg-reindex.rb
CHANGED
data/pg_reindex.gemspec
CHANGED
data/spec/reindex_spec.rb
CHANGED
@@ -9,6 +9,10 @@ describe PgReindex do
|
|
9
9
|
@pgre.filter_relations(name).first
|
10
10
|
end
|
11
11
|
|
12
|
+
def drop_swap_for_reindex
|
13
|
+
@pgre.exec("drop FUNCTION swap_for_pkey(text, text, text)") rescue nil
|
14
|
+
end
|
15
|
+
|
12
16
|
it "get_raw_relations" do
|
13
17
|
res = @pgre.get_raw_relations
|
14
18
|
v = []
|
@@ -87,6 +91,13 @@ describe PgReindex do
|
|
87
91
|
r = row('a_b_c')
|
88
92
|
@pgre.index_def(r['index_oid']).should == "CREATE UNIQUE INDEX a_b_c ON tests USING btree (a, b, c) WHERE ((a > 0) AND (b < 0))"
|
89
93
|
end
|
94
|
+
|
95
|
+
it "check swap for pkey" do
|
96
|
+
drop_swap_for_reindex
|
97
|
+
@pgre.check_swap_for_pkey.should == false
|
98
|
+
@pgre.install_swap_for_pkey
|
99
|
+
@pgre.check_swap_for_pkey.should == true
|
100
|
+
end
|
90
101
|
|
91
102
|
it "rebuilds index" do
|
92
103
|
r = row('a_b_c')
|
metadata
CHANGED
@@ -1,107 +1,104 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: pg_reindex
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
hash: 19
|
5
5
|
prerelease:
|
6
|
+
segments:
|
7
|
+
- 0
|
8
|
+
- 1
|
9
|
+
- 4
|
10
|
+
version: 0.1.4
|
6
11
|
platform: ruby
|
7
|
-
authors:
|
12
|
+
authors:
|
8
13
|
- Makarchev Konstantin
|
9
14
|
autorequire:
|
10
15
|
bindir: bin
|
11
16
|
cert_chain: []
|
12
|
-
|
13
|
-
|
14
|
-
|
17
|
+
|
18
|
+
date: 2012-07-11 00:00:00 +04:00
|
19
|
+
default_executable:
|
20
|
+
dependencies:
|
21
|
+
- !ruby/object:Gem::Dependency
|
15
22
|
name: thor
|
16
|
-
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
|
-
requirements:
|
19
|
-
- - ! '>='
|
20
|
-
- !ruby/object:Gem::Version
|
21
|
-
version: '0'
|
22
|
-
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
|
25
|
-
none: false
|
26
|
-
requirements:
|
27
|
-
- - ! '>='
|
28
|
-
- !ruby/object:Gem::Version
|
29
|
-
version: '0'
|
30
|
-
- !ruby/object:Gem::Dependency
|
31
|
-
name: pg
|
32
|
-
requirement: !ruby/object:Gem::Requirement
|
24
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
33
25
|
none: false
|
34
|
-
requirements:
|
35
|
-
- -
|
36
|
-
- !ruby/object:Gem::Version
|
37
|
-
|
26
|
+
requirements:
|
27
|
+
- - ">="
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
hash: 3
|
30
|
+
segments:
|
31
|
+
- 0
|
32
|
+
version: "0"
|
38
33
|
type: :runtime
|
34
|
+
version_requirements: *id001
|
35
|
+
- !ruby/object:Gem::Dependency
|
36
|
+
name: pg
|
39
37
|
prerelease: false
|
40
|
-
|
38
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
41
39
|
none: false
|
42
|
-
requirements:
|
43
|
-
- -
|
44
|
-
- !ruby/object:Gem::Version
|
45
|
-
|
46
|
-
|
40
|
+
requirements:
|
41
|
+
- - ">="
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
hash: 3
|
44
|
+
segments:
|
45
|
+
- 0
|
46
|
+
version: "0"
|
47
|
+
type: :runtime
|
48
|
+
version_requirements: *id002
|
49
|
+
- !ruby/object:Gem::Dependency
|
47
50
|
name: rspec
|
48
|
-
requirement: !ruby/object:Gem::Requirement
|
49
|
-
none: false
|
50
|
-
requirements:
|
51
|
-
- - ! '>='
|
52
|
-
- !ruby/object:Gem::Version
|
53
|
-
version: '0'
|
54
|
-
type: :development
|
55
51
|
prerelease: false
|
56
|
-
|
52
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
57
53
|
none: false
|
58
|
-
requirements:
|
59
|
-
- -
|
60
|
-
- !ruby/object:Gem::Version
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
none: false
|
66
|
-
requirements:
|
67
|
-
- - ! '>='
|
68
|
-
- !ruby/object:Gem::Version
|
69
|
-
version: '0'
|
54
|
+
requirements:
|
55
|
+
- - ">="
|
56
|
+
- !ruby/object:Gem::Version
|
57
|
+
hash: 3
|
58
|
+
segments:
|
59
|
+
- 0
|
60
|
+
version: "0"
|
70
61
|
type: :development
|
62
|
+
version_requirements: *id003
|
63
|
+
- !ruby/object:Gem::Dependency
|
64
|
+
name: rake
|
71
65
|
prerelease: false
|
72
|
-
|
66
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
73
67
|
none: false
|
74
|
-
requirements:
|
75
|
-
- -
|
76
|
-
- !ruby/object:Gem::Version
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
none: false
|
82
|
-
requirements:
|
83
|
-
- - ! '>='
|
84
|
-
- !ruby/object:Gem::Version
|
85
|
-
version: '0'
|
68
|
+
requirements:
|
69
|
+
- - ">="
|
70
|
+
- !ruby/object:Gem::Version
|
71
|
+
hash: 3
|
72
|
+
segments:
|
73
|
+
- 0
|
74
|
+
version: "0"
|
86
75
|
type: :development
|
76
|
+
version_requirements: *id004
|
77
|
+
- !ruby/object:Gem::Dependency
|
78
|
+
name: activerecord
|
87
79
|
prerelease: false
|
88
|
-
|
80
|
+
requirement: &id005 !ruby/object:Gem::Requirement
|
89
81
|
none: false
|
90
|
-
requirements:
|
91
|
-
- -
|
92
|
-
- !ruby/object:Gem::Version
|
93
|
-
|
94
|
-
|
95
|
-
|
82
|
+
requirements:
|
83
|
+
- - ">="
|
84
|
+
- !ruby/object:Gem::Version
|
85
|
+
hash: 3
|
86
|
+
segments:
|
87
|
+
- 0
|
88
|
+
version: "0"
|
89
|
+
type: :development
|
90
|
+
version_requirements: *id005
|
91
|
+
description: Console utility for gracefully rebuild indexes/pkeys for PostgreSQL, with minimal locking in semi-auto mode.
|
96
92
|
email: kostya27@gmail.com
|
97
|
-
executables:
|
93
|
+
executables:
|
98
94
|
- pgre
|
99
95
|
extensions: []
|
96
|
+
|
100
97
|
extra_rdoc_files: []
|
101
|
-
|
98
|
+
|
99
|
+
files:
|
102
100
|
- .gitignore
|
103
101
|
- Gemfile
|
104
|
-
- Gemfile.lock
|
105
102
|
- MIT-LICENSE
|
106
103
|
- README.md
|
107
104
|
- Rakefile
|
@@ -111,30 +108,39 @@ files:
|
|
111
108
|
- spec/reindex_spec.rb
|
112
109
|
- spec/spec_helper.rb
|
113
110
|
- spec/spec_support.rb
|
111
|
+
has_rdoc: true
|
114
112
|
homepage: http://github.com/kostya/pg_reindex
|
115
113
|
licenses: []
|
114
|
+
|
116
115
|
post_install_message:
|
117
116
|
rdoc_options: []
|
118
|
-
|
117
|
+
|
118
|
+
require_paths:
|
119
119
|
- lib
|
120
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
120
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
121
121
|
none: false
|
122
|
-
requirements:
|
123
|
-
- -
|
124
|
-
- !ruby/object:Gem::Version
|
125
|
-
|
126
|
-
|
122
|
+
requirements:
|
123
|
+
- - ">="
|
124
|
+
- !ruby/object:Gem::Version
|
125
|
+
hash: 3
|
126
|
+
segments:
|
127
|
+
- 0
|
128
|
+
version: "0"
|
129
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
127
130
|
none: false
|
128
|
-
requirements:
|
129
|
-
- -
|
130
|
-
- !ruby/object:Gem::Version
|
131
|
-
|
131
|
+
requirements:
|
132
|
+
- - ">="
|
133
|
+
- !ruby/object:Gem::Version
|
134
|
+
hash: 3
|
135
|
+
segments:
|
136
|
+
- 0
|
137
|
+
version: "0"
|
132
138
|
requirements: []
|
139
|
+
|
133
140
|
rubyforge_project:
|
134
|
-
rubygems_version: 1.
|
141
|
+
rubygems_version: 1.4.2
|
135
142
|
signing_key:
|
136
143
|
specification_version: 3
|
137
|
-
summary: Console utility for gracefully rebuild indexes/pkeys for PostgreSQL, with
|
138
|
-
minimal locking in semi-auto mode.
|
144
|
+
summary: Console utility for gracefully rebuild indexes/pkeys for PostgreSQL, with minimal locking in semi-auto mode.
|
139
145
|
test_files: []
|
140
|
-
|
146
|
+
|
data/Gemfile.lock
DELETED
@@ -1,47 +0,0 @@
|
|
1
|
-
PATH
|
2
|
-
remote: .
|
3
|
-
specs:
|
4
|
-
pg_reindex (0.1.3)
|
5
|
-
pg
|
6
|
-
thor
|
7
|
-
|
8
|
-
GEM
|
9
|
-
remote: http://rubygems.org/
|
10
|
-
specs:
|
11
|
-
activemodel (3.2.6)
|
12
|
-
activesupport (= 3.2.6)
|
13
|
-
builder (~> 3.0.0)
|
14
|
-
activerecord (3.2.6)
|
15
|
-
activemodel (= 3.2.6)
|
16
|
-
activesupport (= 3.2.6)
|
17
|
-
arel (~> 3.0.2)
|
18
|
-
tzinfo (~> 0.3.29)
|
19
|
-
activesupport (3.2.6)
|
20
|
-
i18n (~> 0.6)
|
21
|
-
multi_json (~> 1.0)
|
22
|
-
arel (3.0.2)
|
23
|
-
builder (3.0.0)
|
24
|
-
diff-lcs (1.1.3)
|
25
|
-
i18n (0.6.0)
|
26
|
-
multi_json (1.3.6)
|
27
|
-
pg (0.13.2)
|
28
|
-
rake (0.9.2.2)
|
29
|
-
rspec (2.10.0)
|
30
|
-
rspec-core (~> 2.10.0)
|
31
|
-
rspec-expectations (~> 2.10.0)
|
32
|
-
rspec-mocks (~> 2.10.0)
|
33
|
-
rspec-core (2.10.1)
|
34
|
-
rspec-expectations (2.10.0)
|
35
|
-
diff-lcs (~> 1.1.3)
|
36
|
-
rspec-mocks (2.10.1)
|
37
|
-
thor (0.15.2)
|
38
|
-
tzinfo (0.3.33)
|
39
|
-
|
40
|
-
PLATFORMS
|
41
|
-
ruby
|
42
|
-
|
43
|
-
DEPENDENCIES
|
44
|
-
activerecord
|
45
|
-
pg_reindex!
|
46
|
-
rake
|
47
|
-
rspec
|