Skip to content

pg:wait, pg:info, or --fork using API #14

Closed
@quarterdome

Description

@quarterdome

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:

hk.addon.create('apartmentlist-production', { 'plan' => 'heroku-postgresql:standard-tengu', 'fork' => 'heroku-postgresql-black' } )
hk.addon.create('apartmentlist-production', { 'plan' => 'heroku-postgresql:standard-tengu', 'fork' => 'HEROKU_POSTGRESQL_BLACK_URL' } )

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 that heroku 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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions