我得到了这个奇怪的错误
Caused by: org.postgresql.util.PSQLException: ERROR: could not open
relation base/17369/1684: No such file or directory
我该如何恢复? 有什么想法吗?
谢谢
最佳答案
您丢失了与表 1684 和数据库 17369 相关的文件。检查存在文件 目录 base/17369 中的名称为 1684。
可以判断是哪个表:
1) 获取数据库名称:select * from pg_database where oid=17369
2) 获取表名(连接到受影响的数据库):select * from pg_class where oid=1684
您可能无能为力。仅从备份中恢复。
关于sql - (PostgreSQL) 错误 : could not open relation,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15875400/