查找操作系统文件与数据库中的对应关系

ERROR: could not read block 6370 in file "base/16385/2608": read only 0 of 8192 bytes
查找2608对应的object
image

adsas=# select 2608::regclass;
regclass

pg_depend
(1 row)
直接读表 pg_depend;是正常的。怀疑是不是索引失效。索引重建之后,处理Ok

-- 查看失效索引
select indisvalid, indexrelid::regclass, indrelid::regclass, pg_get_indexdef(indexrelid) from pg_index where not indisvalid;
-- 重建索引
reindex index indexname;