Why Won't PostgreSQL Use My Covering Index?
Dear Postgres, Why won’t you use my covering index?
Lately I’ve been learning to tune queries running against PostgreSQL, and it’s β¦
Read MoreBy Kendra Little on β’ 2 min read
I don’t find bugs in SQL Server all that often. I find bugs in my own codeΒ all the time.
In this case I double checked, and I think it’s a real SQL Server bug.

In SQL Server 2016 SP1, I see an issue with how SQL Server tracks and reports on modifications to column statistics on tables with a clustered columnstore index: it reports more modifications than actually occurred (and for columns that weren’t modified). The modification counter is useful for knowing approximately how much has changed since statistics were last updated.
Even if you’re not using clustered columnstore indexes yet, they’ll probably be in your future before long. After all, as of SQL Server 2016 SP1, you can now use these sweet babies in Standard Edition. (YES!)
Do Future You a favor and take a moment to vote up my bug so it gets reviewed, and hopefully fixed if Microsoft confirms the issue.
Here’s the set up – a simple table with a clustered columnstore index, and several column statistics:
modification_counter for column statistics using a query that joins to sys.dm_db_stats_properties (at this point, they will be 0)The test is simple:
modification_counter for column statistics using a query that joins to sys.dm_db_stats_propertiesExpected outcome: modification_counter should be 1 for a single column statistic (or it should be NULL for all column statistics if this simply isn’t supported on tables with clustered columnstore indexes)
Actual outcome: modification_counter is 2 for ALL column statistics
I’ve created a gist with code to create a simple database and table and reproduce the bug. (This is the same code attached to the connect item.)
Copyright (c) 2025, Catalyze SQL, LLC; all rights reserved. Opinions expressed on this site are solely those of Kendra Little of Catalyze SQL, LLC. Content policy: Short excerpts of blog posts (3 sentences) may be republished, but longer excerpts and artwork cannot be shared without explicit permission.