Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-32233

TRUNCATE table does not clear table statistics

    XMLWordPrintable

Details

    • Bug
    • Status: Open (View Workflow)
    • Major
    • Resolution: Unresolved
    • 10.5(EOL)
    • 11.4
    • None
    • None

    Description

      Truncate table does not call delete_statistics_for_table(), which means that after truncation all table statistics will be wrong.

      Fix:
      Call delete_statistics_for_table() before calling ha_truncate() in Sql_cmd_truncate_table::handler_truncate().

      We have to decide if this is a bug (in which case we should fix this in 10.4/10.5) or a feature, in which case we should fix this in 11.4.

      Attachments

        Activity

          People

            Unassigned Unassigned
            monty Michael Widenius
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:

              Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.