0

I have 2 separate PostgreSQL databases in Google Cloud SQL for PostgreSQL. The databases should be separate due to security concerns, but they can reside in the same database instance. When restoring from a backup, it is important for me to have the databases restored to the same point in time, due to data relations.

I tried to understand how the backup works. I tried to research the backup documentation and restore one, but found no clue.

Can I be sure that restoring an instance would bring all its databases to the same point in time?

1 Answer 1

2

If you restore a Cloud SQL instance backup, it will restore all the databases in that instance to the point when backup was taken. One thing to note here is that if you restore the backup in the same instance it will overwrite the current data with the one in backup.

You can see the General tips about performing a restore to further help you understand the restoration.

Sign up to request clarification or add additional context in comments.

2 Comments

Can you add a reference to the official documentation which explains this? Or explains which kind of backup is performed (pg dump like or some file system based)?
I did a reproduction myself. I haven't found a document mentioning these details but I will share here if I do.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.