MobilityDB 1.3
Loading...
Searching...
No Matches

◆ Temporal_supportfn()

static Datum Temporal_supportfn ( FunctionCallInfo  fcinfo,
TemporalFamily  tempfamily 
)
static

For functions that we want enhanced with spatial index lookups, add this support function to the SQL function definition, for example:

CREATE OR REPLACE FUNCTION ever_eq(tfloat, float)
RETURNS boolean
AS 'MODULE_PATHNAME','ever_eq_temporal_base'
SUPPORT temporal_supportfn
LANGUAGE C IMMUTABLE STRICT PARALLEL SAFE;

The function must also have an entry above in the IndexableFunctions array so that we know what index search strategy we want to apply.