Skip to content
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

Documentation: pg_restore from heroku #481

Open
dennyluan opened this issue May 13, 2023 · 0 comments
Open

Documentation: pg_restore from heroku #481

dennyluan opened this issue May 13, 2023 · 0 comments

Comments

@dennyluan
Copy link
Contributor

To locally restore from a 14.7 pg_dump backup, postgres complains about missing heroku_ext

psql poster_development -c "CREATE SCHEMA IF NOT EXISTS heroku_ext"
psql poster_development -c "ALTER database poster_development SET search_path TO heroku_ext,public"
pg_restore --verbose --clean --no-acl --no-owner -h localhost -d poster_development <backup>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant