PostGIS  3.3.9dev-r@@SVN_REVISION@@

◆ gserialized_analyze_nd()

Datum gserialized_analyze_nd ( PG_FUNCTION_ARGS  )

Definition at line 1907 of file gserialized_estimate.c.

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