PostGIS  3.4.0dev-r@@SVN_REVISION@@

◆ gserialized_analyze_nd()

Datum gserialized_analyze_nd ( PG_FUNCTION_ARGS  )

Definition at line 1901 of file gserialized_estimate.c.

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