pg-pglogical 2.1.1 → 2.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/lib/pg/pglogical/active_record_extension.rb +3 -1
- data/lib/pg/pglogical/client.rb +2 -2
- data/lib/pg/pglogical/version.rb +1 -1
- data/lib/pg-pglogical.rb +2 -1
- data/pg-pglogical.gemspec +2 -1
- metadata +21 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e37310e05554845cc1ad9f8ed81cf7be29f24803
|
4
|
+
data.tar.gz: 40b11f6ce6742eaff575aad7cba31819c477eaac
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b190215a1bcb14a2417879357801eb29e1646a59bd555a8764af38951b368aaa0430b21569b9e1568b4752d1c990c29b3ec367e99c0b3ca87afde38e88b0d7d4
|
7
|
+
data.tar.gz: 84fe1813e2a2bb0603226991de5544900eaf556b88ce2dd5fad19826adc397e5db0a46e681ef62e930978676940b188ef9637574ab50c16024c156e3f1ffd1bb
|
data/CHANGELOG.md
CHANGED
@@ -6,6 +6,14 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
|
|
6
6
|
|
7
7
|
## [Unreleased]
|
8
8
|
|
9
|
+
## [2.1.2] - 2018-02-07
|
10
|
+
### Fixed
|
11
|
+
- Account for symbol table names in drop_table patch [[#19](https://github.com/ManageIQ/pg-pglogical/pull/19)]
|
12
|
+
- Show all subscriptions, even if no replication origin status entry exists [[#20](https://github.com/ManageIQ/pg-pglogical/pull/20)]
|
13
|
+
|
14
|
+
### Changed
|
15
|
+
- Set a version constraint on the PG gem [[#18](https://github.com/ManageIQ/pg-pglogical/pull/18)]
|
16
|
+
|
9
17
|
## [2.1.1] - 2017-11-14
|
10
18
|
### Fixed
|
11
19
|
- Add the options parameter to the prepended drop table method [[#16](https://github.com/ManageIQ/pg-pglogical/pull/16)]
|
@@ -12,10 +12,12 @@ module PG
|
|
12
12
|
|
13
13
|
module MigrationExtension
|
14
14
|
def drop_table(table, options = {})
|
15
|
+
table_string = table.to_s
|
16
|
+
|
15
17
|
pgl = PG::Pglogical::Client.new(ApplicationRecord.connection)
|
16
18
|
if pgl.enabled?
|
17
19
|
pgl.replication_sets.each do |set|
|
18
|
-
pgl.replication_set_remove_table(set,
|
20
|
+
pgl.replication_set_remove_table(set, table_string) if pgl.tables_in_replication_set(set).include?(table_string)
|
19
21
|
end
|
20
22
|
end
|
21
23
|
super
|
data/lib/pg/pglogical/client.rb
CHANGED
@@ -131,7 +131,7 @@ module PG
|
|
131
131
|
# @param sync_data [Boolean] sync the data when subscribing
|
132
132
|
# @param forward_origins [Array<String>] names of non-provider nodes to replicate changes
|
133
133
|
# from (cascading replication)
|
134
|
-
def subscription_create(name, dsn, replication_sets = %w(default default_insert_only),
|
134
|
+
def subscription_create(name, dsn, replication_sets = %w(default default_insert_only),
|
135
135
|
sync_structure = true, sync_data = true, forward_origins = ["all"])
|
136
136
|
typed_exec("SELECT pglogical.create_subscription($1, $2, $3, $4, $5, $6)",
|
137
137
|
name, dsn, replication_sets, sync_structure, sync_data, forward_origins)
|
@@ -221,7 +221,7 @@ module PG
|
|
221
221
|
sql = <<-SQL
|
222
222
|
SELECT sub.*, stat.remote_lsn AS remote_replication_lsn, stat.local_lsn AS local_replication_lsn
|
223
223
|
FROM pglogical.show_subscription_status($1) sub
|
224
|
-
JOIN pg_replication_origin_status stat
|
224
|
+
LEFT JOIN pg_replication_origin_status stat
|
225
225
|
ON sub.slot_name = stat.external_id
|
226
226
|
SQL
|
227
227
|
|
data/lib/pg/pglogical/version.rb
CHANGED
data/lib/pg-pglogical.rb
CHANGED
data/pg-pglogical.gemspec
CHANGED
@@ -24,9 +24,10 @@ EOS
|
|
24
24
|
spec.require_paths = ["lib"]
|
25
25
|
|
26
26
|
spec.add_dependency "activerecord"
|
27
|
-
spec.add_dependency "pg"
|
27
|
+
spec.add_dependency "pg", "~> 0.18"
|
28
28
|
|
29
29
|
spec.add_development_dependency "bundler", "~> 1.13"
|
30
30
|
spec.add_development_dependency "rake", "~> 10.0"
|
31
31
|
spec.add_development_dependency "rspec", "~> 3.0"
|
32
|
+
spec.add_development_dependency "rubocop", "~> 0.52"
|
32
33
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pg-pglogical
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.1.
|
4
|
+
version: 2.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nick Carboni
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-02-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|
@@ -28,16 +28,16 @@ dependencies:
|
|
28
28
|
name: pg
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - "
|
31
|
+
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '0'
|
33
|
+
version: '0.18'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- - "
|
38
|
+
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '0'
|
40
|
+
version: '0.18'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: bundler
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -80,6 +80,20 @@ dependencies:
|
|
80
80
|
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: '3.0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: rubocop
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - "~>"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0.52'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - "~>"
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0.52'
|
83
97
|
description: |
|
84
98
|
This gem provides a class with methods which map directly to the SQL stored
|
85
99
|
procedure APIs provided by pglogical. It also provides a way to mix these
|
@@ -131,7 +145,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
131
145
|
version: '0'
|
132
146
|
requirements: []
|
133
147
|
rubyforge_project:
|
134
|
-
rubygems_version: 2.6.
|
148
|
+
rubygems_version: 2.6.14
|
135
149
|
signing_key:
|
136
150
|
specification_version: 4
|
137
151
|
summary: A ruby gem for configuring and using pglogical
|