备份和恢复 PostgreSQL 中包含检查约束的分区表
我的数据库中有分区表。我想备份表并在本地主机上恢复它们。通过使用 pg_dump,我能够备份父表,但数据未复制到备份文件中。当我使用 psql 或 pg_restore 数据恢复它时,它没有恢复。对于分区表,它包含检查约束。用数据备份和恢复分区表的解决方案是什么?
I have partitioned tables in my database. I want to backup the tables and restore them on the localhost. By using pg_dump, I was able to backup the parent table but the data was not copied in the backup file. When I restore it using psql or pg_restore data, it was not restored. In the case of partition tables, it contains check constraints. What is the solution to backup and restore the partitioned tables with the data?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论