• Sergey Vojtovich's avatar
    BUG#39185 - Cardinality for merge tables calculated incorrectly. · 0acdf23f
    Sergey Vojtovich authored
    Every subsequent query to a merge table with indexes was lowering
    down cardinality.
    
    The problem was that key statistics was not cleared when merge
    children were detached. Causing next attach children perform
    incremental key statistics calculation.
    
    Fixed by clearing key statistics when attaching first child.
    0acdf23f
myrg_open.c 16.6 KB