Comments (5)
Oof! yes, I see where its coming from. Thank you @asotolongo . I will have a fix, document update and a new release out. Ideally gem install pg_online_schem_change
is all you should need.
Let us know if you have any feedback from using the package ππΎ
from pg-osc.
Hi @asotolongo thanks for the issue. Indeed, happy to add the dependencies section and keep it updated.
Just so I understand too, was this causing an issue during installation? It shouldn't, so let know if you encountered an issue and fix accordingly as well.
from pg-osc.
When a tried to execute pg-online-schema-change help perform
without this dependencies, i got the following errors:
Traceback (most recent call last):
7: from /usr/local/bin/pg-online-schema-change:23:in `<main>'
6: from /usr/local/bin/pg-online-schema-change:23:in `load'
5: from /var/lib/gems/2.7.0/gems/pg_online_schema_change-0.2.0/bin/pg-online-schema-change:4:in `<top (required)>'
4: from /usr/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:92:in `require'
3: from /usr/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:92:in `require'
2: from /var/lib/gems/2.7.0/gems/pg_online_schema_change-0.2.0/lib/pg_online_schema_change.rb:4:in `<top (required)>'
1: from /usr/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:92:in `require'
/usr/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:92:in `require': cannot load such file -- ougai (LoadError)
...
Traceback (most recent call last):
10: from /usr/local/bin/pg-online-schema-change:23:in `<main>'
9: from /usr/local/bin/pg-online-schema-change:23:in `load'
8: from /var/lib/gems/2.7.0/gems/pg_online_schema_change-0.2.0/bin/pg-online-schema-change:4:in `<top (required)>'
7: from /usr/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:92:in `require'
6: from /usr/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:92:in `require'
5: from /var/lib/gems/2.7.0/gems/pg_online_schema_change-0.2.0/lib/pg_online_schema_change.rb:9:in `<top (required)>'
4: from /usr/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:92:in `require'
3: from /usr/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:92:in `require'
2: from /var/lib/gems/2.7.0/gems/pg_online_schema_change-0.2.0/lib/pg_online_schema_change/cli.rb:1:in `<top (required)>'
1: from /usr/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:92:in `require'
/usr/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:92:in `require': cannot load such file -- thor (LoadError)
...
Traceback (most recent call last):
10: from /usr/local/bin/pg-online-schema-change:23:in `<main>'
9: from /usr/local/bin/pg-online-schema-change:23:in `load'
8: from /var/lib/gems/2.7.0/gems/pg_online_schema_change-0.2.0/bin/pg-online-schema-change:4:in `<top (required)>'
7: from /usr/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:92:in `require'
6: from /usr/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:92:in `require'
5: from /var/lib/gems/2.7.0/gems/pg_online_schema_change-0.2.0/lib/pg_online_schema_change.rb:10:in `<top (required)>'
4: from /usr/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:92:in `require'
3: from /usr/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:92:in `require'
2: from /var/lib/gems/2.7.0/gems/pg_online_schema_change-0.2.0/lib/pg_online_schema_change/client.rb:1:in `<top (required)>'
1: from /usr/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:92:in `require'
/usr/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:92:in `require': cannot load such file -- pg (LoadError)
...
Traceback (most recent call last):
10: from /usr/local/bin/pg-online-schema-change:23:in `<main>'
9: from /usr/local/bin/pg-online-schema-change:23:in `load'
8: from /var/lib/gems/2.7.0/gems/pg_online_schema_change-0.2.0/bin/pg-online-schema-change:4:in `<top (required)>'
7: from /usr/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:92:in `require'
6: from /usr/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:92:in `require'
5: from /var/lib/gems/2.7.0/gems/pg_online_schema_change-0.2.0/lib/pg_online_schema_change.rb:11:in `<top (required)>'
4: from /usr/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:92:in `require'
3: from /usr/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:92:in `require'
2: from /var/lib/gems/2.7.0/gems/pg_online_schema_change-0.2.0/lib/pg_online_schema_change/query.rb:1:in `<top (required)>'
1: from /usr/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:92:in `require'
/usr/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:92:in `require': cannot load such file -- pg_query (LoadError)
After install the dependencies work like charm, Thanks
from pg-osc.
Thanks
from pg-osc.
This is fixed now. Running gem install pg_online_schema_change
will install all the dependencies too. https://rubygems.org/gems/pg_online_schema_change
Also have a new listing on Dockerhub now: https://hub.docker.com/r/shayonj/pg-osc
Thanks again for the issue and let us know if there is anything we can help with ππΎ
from pg-osc.
Related Issues (20)
- Ability to modify the SQL used to populate the new table HOT 10
- Add additional safety for custom copy sql HOT 2
- operation_type audit table can conflict with column name on the primary table
- Introduce a PK/id field on audit table for ordered reads
- Deprecate -w option for password and replace with PGPASSWORD env
- race condition between replay and swap
- Add foreign keys to shadow table during swap HOT 1
- Integration/smoke test HOT 2
- Signal handler gets stuck on IO somewhere on SIGINT
- Some issues while working with partitioned table HOT 5
- Re-enable autovacuum and fix sequence naming post swap HOT 1
- Feature Request: We want to make it working with the table with trigger HOT 7
- Set the appropriate next sequence value on the new table HOT 11
- εΎδΈιηε·₯ε · HOT 1
- Potential need for a `pull-batch-delay` option HOT 4
- Views aren't updated after the swap HOT 7
- Auto-Vacuum Isn't Re-enabled HOT 14
- Using pg-osc only for backfilling data HOT 4
- Copy phase is acquiring a lock on my original table I don't know why HOT 18
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pg-osc.