1860 VacAttrStats *stats = (VacAttrStats *)PG_GETARG_POINTER(0);
1861 Form_pg_attribute attr = stats->attr;
1863 POSTGIS_DEBUG(2,
"gserialized_analyze_nd called");
1867 if (attr->attstattarget < 0)
1868 attr->attstattarget = default_statistics_target;
1870 POSTGIS_DEBUGF(3,
" attribute stat target: %d", attr->attstattarget);
1875 stats->minrows = 300 * stats->attr->attstattarget;
1878 POSTGIS_DEBUGF(3,
" minrows: %d", stats->minrows);
1881 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...