dba_tab_statistics --oracle,可以查看STALE_STATS字段,如果YES表示表的统计信息过期了
pg中有对应的方面吗?
可以参考下https://www.cnblogs.com/leadx/p/14380263.html