PostGIS  3.7.0dev-r@@SVN_REVISION@@

◆ gserialized_analyze_nd()

Datum gserialized_analyze_nd ( PG_FUNCTION_ARGS  )

Definition at line 1906 of file gserialized_estimate.c.

1907 {
1908  VacAttrStats *stats = (VacAttrStats *)PG_GETARG_POINTER(0);
1909  GserializedAnalyzeExtraData *extra_data =
1911 
1912  /* Ask for standard analyze to fill in as much as possible */
1913  if (!std_typanalyze(stats))
1914  PG_RETURN_BOOL(false);
1915 
1916  /* Save old compute_stats and extra_data for scalar statistics ... */
1917  extra_data->std_compute_stats = stats->compute_stats;
1918  extra_data->std_extra_data = stats->extra_data;
1919  /* ... and replace with our info */
1920  stats->compute_stats = compute_gserialized_stats;
1921  stats->extra_data = extra_data;
1922 
1923  /* Indicate we are done successfully */
1924  PG_RETURN_BOOL(true);
1925 }
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...
AnalyzeAttrComputeStatsFunc std_compute_stats

References compute_gserialized_stats(), GserializedAnalyzeExtraData::std_compute_stats, and GserializedAnalyzeExtraData::std_extra_data.

Here is the call graph for this function: