PostGIS 3.7.0dev-r@@SVN_REVISION@@
Loading...
Searching...
No Matches

◆ gserialized_analyze_nd()

Datum gserialized_analyze_nd ( PG_FUNCTION_ARGS  )

Definition at line 1748 of file gserialized_estimate.c.

1749{
1750 VacAttrStats *stats = (VacAttrStats *)PG_GETARG_POINTER(0);
1751 GserializedAnalyzeExtraData *extra_data =
1753
1754 /* Ask for standard analyze to fill in as much as possible */
1755 if (!std_typanalyze(stats))
1756 PG_RETURN_BOOL(false);
1757
1758 /* Save old compute_stats and extra_data for scalar statistics ... */
1759 extra_data->std_compute_stats = stats->compute_stats;
1760 extra_data->std_extra_data = stats->extra_data;
1761 /* ... and replace with our info */
1762 stats->compute_stats = compute_gserialized_stats;
1763 stats->extra_data = extra_data;
1764
1765 /* Indicate we are done successfully */
1766 PG_RETURN_BOOL(true);
1767}
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: