1900 VacAttrStats *stats = (VacAttrStats *)PG_GETARG_POINTER(0);
1901 Form_pg_attribute attr = stats->attr;
1903 POSTGIS_DEBUG(2,
"gserialized_analyze_nd called");
1907 if (attr->attstattarget < 0)
1908 attr->attstattarget = default_statistics_target;
1910 POSTGIS_DEBUGF(3,
" attribute stat target: %d", attr->attstattarget);
1915 stats->minrows = 300 * stats->attr->attstattarget;
1918 POSTGIS_DEBUGF(3,
" minrows: %d", stats->minrows);
1921 PG_RETURN_BOOL(
true);
static void compute_gserialized_stats(VacAttrStats *stats, AnalyzeAttrFetchFunc fetchfunc, int sample_rows, double total_rows)
In order to do useful selectivity calculations in both 2-D and N-D modes, we actually have to generat...