WL#8706: Persistent storage of Histogram data

Affects: Server-8.0   —   Status: Complete

This worklog covers the work needed to store histogram data persistent. This is
needed so that histogram data does not have to be created each time the server
starts.

We have considered several ways of storing histograms persistent, and we
propose to store the histogram statistics in a new system table;
mysql.column_stats. The histogram itself will be stored in a JSON column, which
gives us a very flexible and powerful way of storing histograms. We also present
some of the other approaches we have considered.