Create the ASCII histogram

The statprint() function converts the statistics data stored in the stat data type to an LVARCHAR value that the database server can use to display information. The stat data type is a multirepresentational data type that the database server uses to store statistics data in the encdat column of the sysdistrib system catalog table.