• Sergei Golubchik's avatar
    MDEV-23753: SIGSEGV in Column_stat::store_stat_fields · 06a791aa
    Sergei Golubchik authored
    only collect persistent stats for columns explicitly listed
    by the user in the  ANALYZE TABLE PERSISTENT FOR COLUMNS (...)
    clause. The engine can extend table->read_set as much as
    it wants, it should not affect the collected statistics.
    
    Test case from the 3b94309a applies - it used to crash,
    because ha_partition extended table->read_set after the loop that
    initialized some objects based on bits in the read_set but before the
    loop that used these objects based on bits in the read_set.
    06a791aa
sql_statistics.cc 120 KB