Check statistics targets in PostgreSQL

后端 未结 2 1974
独厮守ぢ
独厮守ぢ 2020-12-17 10:30

I have searched but been unable to find any simple, straight forward answer to this. How do I check the current statistics targets used by ANALYZE?

2条回答
  •  臣服心动
    2020-12-17 11:09

    This provides a cleaner view of current statistics being collected

    SELECT attrelid::regclass, attname, attstattarget FROM pg_attribute WHERE attstattarget >= 0 order by attstattarget desc;
    

提交回复
热议问题