Book Image

Learning Heroku Postgres

By : Patrick Rafael de Oliveira Espake
Book Image

Learning Heroku Postgres

By: Patrick Rafael de Oliveira Espake

Overview of this book

Table of Contents (17 chapters)
Learning Heroku Postgres
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Keyword List
Index

Restoring to local database


A restore operation uses the pg_restore tool. It is installed by default during the PostgreSQL installation locally. For restoring the database, enter the following command:

$ pg_restore --verbose --clean --no-acl --no-owner -h localhost -U your-db-username -d your-database-name latest.dump