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

Heroku Postgres forking databases


A fork of your database is the structure and data copied at a certain point in time. This consists of creating a new database from another. The fork database is not synchronized after your creation.

The most common use is for analysis and experiments with a copy of the database. You can also use the fork database to experiment with different versions of database plans. This allows you to test the behavior of the database.

A fork database is a copy of another database, that allows us to read and write.

Forking your database

The creation of a fork database works in a manner similar to the creation of a follower database. You must add a new database in the desired plan using the --fork flag; this flag advises that there will be a fork from another database.

As it happens with the followers, you don't need to create a fork in the same plan of the database. You can choose any other plan, and the forks allow you to, experiment with different database plans. The forks...