This repository has been archived by the owner on Feb 12, 2022. It is now read-only.
pg:pull with connection string not just db name #2020
Open
Robsteranium
wants to merge
1,354
commits into
heroku:master
Choose a base branch
from
Robsteranium:pg-pull-connection-string
base: master
Could not load branches
Branch not found: {{ refName }}
Could not load tags
Nothing to show
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
pg:pull with connection string not just db name #2020
Robsteranium
wants to merge
1,354
commits into
heroku:master
from
Robsteranium:pg-pull-connection-string
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Display message when available
report errors in removing old versions to rollbar
Since Postgres backups are tied to the app and not the add-on, but we require *an* add-on to interact with, make sure that that add-on is attached to the right app.
…achable-resources-issues Improve handling of shareable add-ons w.r.t. Postgres backups
update asynchronously
since they happen asynchronously now
remove all files when uninstalling on windows
do not delete v4 if error reading commands
fix localappdata with non-ascii characters
…gnose Remove 9.1 warning on pg:diagnose output
right now these are ignored because they are flagged as hidden in the new CLI. Really though we don't want these hidden, so adding this exception in allows us to show the commands in the new CLI and still have the old one keep the old functionality.
caller gets this stacktrace: ``` SSL_connect SYSCALL returned=5 errno=0 state=unknown state /usr/lib/ruby/2.1.0/net/http.rb:920:in `connect' /usr/lib/ruby/2.1.0/net/http.rb:920:in `block in connect' /usr/lib/ruby/2.1.0/timeout.rb:76:in `timeout' /usr/lib/ruby/2.1.0/net/http.rb:920:in `connect' /usr/lib/ruby/2.1.0/net/http.rb:863:in `do_start' /usr/lib/ruby/2.1.0/net/http.rb:852:in `start' /usr/local/heroku/vendor/gems/rest-client-1.6.8/lib/restclient/request.rb:206:in `transmit' /usr/local/heroku/vendor/gems/rest-client-1.6.8/lib/restclient/request.rb:68:in `execute' /usr/local/heroku/vendor/gems/rest-client-1.6.8/lib/restclient/request.rb:35:in `execute' /usr/local/heroku/vendor/gems/rest-client-1.6.8/lib/restclient/resource.rb:51:in `get' /usr/local/heroku/lib/heroku/client/heroku_postgresql_backups.rb:55:in `block (2 levels) in http_get' /usr/local/heroku/lib/heroku/helpers.rb:126:in `retry_on_exception' /usr/local/heroku/lib/heroku/client/heroku_postgresql_backups.rb:54:in `block in http_get' /usr/local/heroku/lib/heroku/client/heroku_postgresql_backups.rb:106:in `checking_client_version' /usr/local/heroku/lib/heroku/client/heroku_postgresql_backups.rb:53:in `http_get' /usr/local/heroku/lib/heroku/client/heroku_postgresql_backups.rb:20:in `transfers_get' /usr/local/heroku/lib/heroku/command/pg_backups.rb:455:in `poll_transfer' /usr/local/heroku/lib/heroku/command/pg_backups.rb:444:in `restore_backup' /usr/local/heroku/lib/heroku/command/pg_backups.rb:81:in `backups' /usr/local/heroku/lib/heroku/command.rb:213:in `run' /usr/local/heroku/lib/heroku/cli.rb:34:in `start' /usr/local/heroku/bin/heroku:25:in `<main>' ```
* Update rest-client gem because security vulnerabilities * add credentials to webmock urls * Use url.parse & Addressable::Template * Fix CI build breakage by mocking when no netrc
`pg:pull` should convert a connection string for a localhost target (e.g. to force a port rather than socket connection) into (i.e. `-h` and `-p`) arguments to postgres cli tools. This was the case `pg_dump` and `pg_restore` but not for `createdb`. This patch adjust the call of `createdb` to use the connection string rather than just the database name.
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
pg:pull
should convert a connection string for a localhost target(e.g. to force a port rather than socket connection) into (i.e.
-h
and-p
) arguments to postgres cli tools.This was the case
pg_dump
andpg_restore
but not forcreatedb
.This patch adjust the call of
createdb
to use the connection stringrather than just the database name.