-
Notifications
You must be signed in to change notification settings - Fork 86
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pg:wait, pg:info, or --fork using API #14
Comments
@quarterdome Hi Matt, thanks for writing in! The short answer is that there is no good way to do this right now. The platform API provides a generic way to interact with all add-ons, but one downside of that is that there isn't really any way for those add-ons to enrich the experience for users from an API perspective. Actions like We're working on a better long-term solution for this problem. /cc @heroku/department-of-data We need you under the umbrella! |
@quarterdome for forking, you should be able to use the config hash to include the fork flag. That is, something like this should work:
(disclaimer: I have not tried this and have not used The fork argument must be the full URL of a heroku postgres database. Unfortunately, we don't really have a better way to access data for |
Thanks for your suggestion, @deafbybeheading. I will try this for forking. Unfortunately, I don't think your suggestion for I ended up scripting what I needed using Heroku Toolbelt CLI, and parsing its stdout. |
I'd also love to see PostgreSQL-specific API calls in |
We've certainly heard this ask, but we don't have a timeline we can share on providing this. |
closing in favor of #47 (just to reduce duplication a bit) |
@uhoh-itsmaciek this command works but the Heroku pg fork command is not available with hobby plan:
I can't find any way to copy a database from another app (like heroku cli fork command) or just migrate + seed my new database (hobby plan). |
@jlerpscher Right, hobby plans do not support forking. You may be able to reverse-engineer |
I am able to create a new Heroku Postgres addon using the Platform API. However, it is not clear how to provision a fork of an existing database and wait until the fork is complete.
I tried the following two options to provision the fork:
Both of the above provision an addon, but do not fork an existing DB.
Also, when I use the
addon.info
endpoint, I do not get any of the info thatheroku pg:info
command gives me. In particular I see no way to know if a newly provisioned DB has caught up and is ready for queries.If Platform API is not the right tool for it, is there any other Heroku API that can help me accomplish forking a database and waiting until it is ready?
The text was updated successfully, but these errors were encountered: