0

Where can I find statistics for specific table column scans?

I have a very large table (near 10^9 rows) which has a few indexes however not on all fields. The non-indexed fields are mostly foreign keys to dimension tables. pg_stat_user_tables and pg_stat_user_indexes provide information on the table itself and indexed columns respectively but I cannot identify a source for specific stats for scans on singular non-index columns.

it is my understanding that a query select * from table where indexedcol=123 and nonindexedcol=456; will use the relevant index for indexedcol but do a scan on nonindexedcol.

asked Apr 9, 2025 at 10:13

0

Know someone who can answer? Share a link to this question via email, Twitter, or Facebook.

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.