mysql - 使用 pg :backups restore 恢复表

标签 mysql ruby-on-rails postgresql heroku

阅读 Heroku postgres 文档时遇到了这个问题:

Unlike with the previous pgbackups commands, you cannot restore a partial backup into an existing database. When you run pg:backups restore, all data is deleted from the target database before restoring the backup.

source 1 source 2

有没有办法使用 pg:backups restore 恢复单个表?

最佳答案

this风险自负。

重要提示:在尝试此操作之前备份您的数据库。

关于mysql - 使用 pg :backups restore 恢复表,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40178781/

相关文章:

ruby-on-rails - 首先 RSPEC 测试,确保值为 1 或 -1

ruby-on-rails - "before :each do" block 未在 rspec 中运行

ruby-on-rails - 样式表或 JavaScript 文件的 Rails 404 错误

javascript - Loopback: "Unhandled rejection Error: The transaction is not active"同时开始10个事务

java - 如何在 JOOQ 的 `ExecuteListener` 中安全地执行自定义语句?

mysql - 加入还是子查询?

mysql - 为什么使用来自 ruby​​ 的 LOAD DATA LOCAL INFILE 插入时,MySQL 中插入的行数较少

postgresql - 如何向 PostgreSQL 添加自定义聚合函数(例如 MAX/MIN)?

mysql - 错误 1064 (42000) : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use

php - 两个 php 表单。第二种形式从第一种形式获取数据。但刷新第二页显示错误