Check statistics targets in PostgreSQL
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? The setting for the statistics target is stored per column in the catalog table pg_attribute . You can set it like this: ALTER TABLE myschama.mytable ALTER mycolumn SET STATISTICS 127; And check it like this: SELECT attstattarget FROM pg_attribute WHERE attrelid = 'myschama.mytable'::regclass AND attname = 'mycolumn'; Or you just look at the creation script in the object browser of pgAdmin, where it is appended if the value is distinct from the