905 #if POSTGIS_PGSQL_VERSION < 100
910 rv = get_attstatsslot(stats_tuple, 0, 0, stats_kind, InvalidOid,
911 NULL, NULL, NULL, &floatptr, &nvalues);
914 POSTGIS_DEBUGF(2,
"no slot of kind %d in stats tuple", stats_kind);
919 nd_stats = palloc(
sizeof(
float) * nvalues);
920 memcpy(nd_stats, floatptr,
sizeof(
float) * nvalues);
923 free_attstatsslot(0, NULL, 0, floatptr, nvalues);
928 rv = get_attstatsslot(&sslot, stats_tuple, stats_kind, InvalidOid,
929 ATTSTATSSLOT_NUMBERS);
931 POSTGIS_DEBUGF(2,
"no slot of kind %d in stats tuple", stats_kind);
936 nd_stats = palloc(
sizeof(float4) * sslot.nnumbers);
937 memcpy(nd_stats, sslot.numbers,
sizeof(float4) * sslot.nnumbers);
939 free_attstatsslot(&sslot);
#define STATISTIC_KIND_2D
#define STATISTIC_KIND_ND
N-dimensional statistics structure.