898 #if POSTGIS_PGSQL_VERSION < 100
903 rv = get_attstatsslot(stats_tuple, 0, 0, stats_kind, InvalidOid,
904 NULL, NULL, NULL, &floatptr, &nvalues);
907 POSTGIS_DEBUGF(2,
"no slot of kind %d in stats tuple", stats_kind);
912 nd_stats = palloc(
sizeof(
float) * nvalues);
913 memcpy(nd_stats, floatptr,
sizeof(
float) * nvalues);
916 free_attstatsslot(0, NULL, 0, floatptr, nvalues);
921 rv = get_attstatsslot(&sslot, stats_tuple, stats_kind, InvalidOid,
922 ATTSTATSSLOT_NUMBERS);
924 POSTGIS_DEBUGF(2,
"no slot of kind %d in stats tuple", stats_kind);
929 nd_stats = palloc(
sizeof(float4) * sslot.nnumbers);
930 memcpy(nd_stats, sslot.numbers,
sizeof(float4) * sslot.nnumbers);
932 free_attstatsslot(&sslot);
#define STATISTIC_KIND_2D
#define STATISTIC_KIND_ND
N-dimensional statistics structure.