4. Defining Data Types : dhmax Routine—Create Default Maximum Histogram Value
 
Share this page                  
dhmax Routine—Create Default Maximum Histogram Value
This routine creates the default maximum histogram value. The default histogram values are used by the optimizer when no histogram data is present in the system catalogs. For a discussion of creating a default histogram routine, see dhmin Routine. If the II_DT_NOHISTOGRAM attribute is set, then this routine is not necessary.
This routine and the hmax routine form a pair, similar to the pair hmin and dhmin, except that hmax and dhmax deal with the maximum and default maximums, respectively, instead of the minimums.
Place the address of this routine in the dtd_dhmax_addr field of the IIADD_DT_DFN structure.