867 #if POSTGIS_PGSQL_VERSION < 100 871 rv = get_attstatsslot(stats_tuple, 0, 0, stats_kind, InvalidOid,
872 NULL, NULL, NULL, &floatptr, &nvalues);
876 "no slot of kind %d in stats tuple", stats_kind);
881 nd_stats = palloc(
sizeof(
float) * nvalues);
882 memcpy(nd_stats, floatptr,
sizeof(
float) * nvalues);
885 free_attstatsslot(0, NULL, 0, floatptr, nvalues);
888 rv = get_attstatsslot(&sslot, stats_tuple, stats_kind, InvalidOid,
889 ATTSTATSSLOT_NUMBERS);
892 "no slot of kind %d in stats tuple", stats_kind);
897 nd_stats = palloc(
sizeof(float4) * sslot.nnumbers);
898 memcpy(nd_stats, sslot.numbers,
sizeof(float4) * sslot.nnumbers);
900 free_attstatsslot(&sslot);
#define STATISTIC_KIND_2D
N-dimensional statistics structure.
#define STATISTIC_KIND_ND
Assign a number to the n-dimensional statistics kind.