在PostgreSQL中还原已删除的记录 [英] Restore deleted records in PostgreSQL

查看:482
本文介绍了在PostgreSQL中还原已删除的记录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不小心删除了PostgreSQL中3个表中的所有记录。我该如何还原数据?

I accidentally deleted all the records from 3 tables in PostgreSQL. How can i restore the data?

推荐答案

这是一个与此处讨论的问题类似的问题:

This is a similar problem as discussed here:

可以回滚交易吗?已经承诺? (数据丢失)

基本上,从备份中还原。如果不能,则可能可以使用 pg_dirtyread 恢复。

Basically, restore from backup. If you can't, you might be able to recover with pg_dirtyread.

如果您没有备份,请停止整个服务器,获取驱动器的磁盘映像,然后联系$ lots数据恢复专家。

If you don't have backups, stop the whole server, take a disk image of the drive, and contact a $lots data recovery expert.

这篇关于在PostgreSQL中还原已删除的记录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆