sql/datasketches--1.3.0--1.6.0.sql [158:240]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
CREATE OR REPLACE FUNCTION kll_float_sketch_build_agg(internal, real) RETURNS internal
    AS '$libdir/datasketches', 'pg_kll_float_sketch_build_agg'
    LANGUAGE C IMMUTABLE PARALLEL SAFE;

CREATE OR REPLACE FUNCTION kll_float_sketch_build_agg(internal, real, int) RETURNS internal
    AS '$libdir/datasketches', 'pg_kll_float_sketch_build_agg'
    LANGUAGE C IMMUTABLE PARALLEL SAFE;

CREATE OR REPLACE FUNCTION kll_float_sketch_merge_agg(internal, kll_float_sketch) RETURNS internal
    AS '$libdir/datasketches', 'pg_kll_float_sketch_merge_agg'
    LANGUAGE C IMMUTABLE PARALLEL SAFE;

CREATE OR REPLACE FUNCTION kll_float_sketch_merge_agg(internal, kll_float_sketch, int) RETURNS internal
    AS '$libdir/datasketches', 'pg_kll_float_sketch_merge_agg'
    LANGUAGE C IMMUTABLE PARALLEL SAFE;

CREATE OR REPLACE FUNCTION kll_float_sketch_serialize(internal) RETURNS bytea
    AS '$libdir/datasketches', 'pg_kll_float_sketch_serialize'
    LANGUAGE C STRICT IMMUTABLE PARALLEL SAFE;

CREATE OR REPLACE FUNCTION kll_float_sketch_deserialize(bytea, internal) RETURNS internal
    AS '$libdir/datasketches', 'pg_kll_float_sketch_deserialize'
    LANGUAGE C STRICT IMMUTABLE PARALLEL SAFE;

CREATE OR REPLACE FUNCTION kll_float_sketch_combine(internal, internal) RETURNS internal
    AS '$libdir/datasketches', 'pg_kll_float_sketch_combine'
    LANGUAGE C IMMUTABLE PARALLEL SAFE;

CREATE OR REPLACE FUNCTION kll_float_sketch_finalize(internal) RETURNS kll_float_sketch
    AS '$libdir/datasketches', 'pg_kll_float_sketch_serialize'
    LANGUAGE C STRICT IMMUTABLE PARALLEL SAFE;

CREATE OR REPLACE AGGREGATE kll_float_sketch_build(real) (
    STYPE = internal,
    SFUNC = kll_float_sketch_build_agg,
    COMBINEFUNC = kll_float_sketch_combine,
    SERIALFUNC = kll_float_sketch_serialize,
    DESERIALFUNC = kll_float_sketch_deserialize, 
    FINALFUNC = kll_float_sketch_finalize,
    PARALLEL = SAFE
);

CREATE OR REPLACE AGGREGATE kll_float_sketch_build(real, int) (
    STYPE = internal,
    SFUNC = kll_float_sketch_build_agg,
    COMBINEFUNC = kll_float_sketch_combine,
    SERIALFUNC = kll_float_sketch_serialize,
    DESERIALFUNC = kll_float_sketch_deserialize, 
    FINALFUNC = kll_float_sketch_finalize,
    PARALLEL = SAFE
);

CREATE OR REPLACE AGGREGATE kll_float_sketch_merge(kll_float_sketch) (
    STYPE = internal,
    SFUNC = kll_float_sketch_merge_agg,
    COMBINEFUNC = kll_float_sketch_combine,
    SERIALFUNC = kll_float_sketch_serialize,
    DESERIALFUNC = kll_float_sketch_deserialize, 
    FINALFUNC = kll_float_sketch_finalize,
    PARALLEL = SAFE
);

CREATE OR REPLACE AGGREGATE kll_float_sketch_merge(kll_float_sketch, int) (
    STYPE = internal,
    SFUNC = kll_float_sketch_merge_agg,
    COMBINEFUNC = kll_float_sketch_combine,
    SERIALFUNC = kll_float_sketch_serialize,
    DESERIALFUNC = kll_float_sketch_deserialize, 
    FINALFUNC = kll_float_sketch_finalize,
    PARALLEL = SAFE
);

CREATE OR REPLACE FUNCTION kll_float_sketch_get_rank(kll_float_sketch, real) RETURNS double precision
    AS '$libdir/datasketches', 'pg_kll_float_sketch_get_rank'
    LANGUAGE C STRICT IMMUTABLE PARALLEL SAFE;

CREATE OR REPLACE FUNCTION kll_float_sketch_get_quantile(kll_float_sketch, double precision) RETURNS real
    AS '$libdir/datasketches', 'pg_kll_float_sketch_get_quantile'
    LANGUAGE C STRICT IMMUTABLE PARALLEL SAFE;

CREATE OR REPLACE FUNCTION kll_float_sketch_get_n(kll_float_sketch) RETURNS bigint
    AS '$libdir/datasketches', 'pg_kll_float_sketch_get_n'
    LANGUAGE C STRICT IMMUTABLE PARALLEL SAFE;
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



sql/datasketches_kll_float_sketch.sql [37:119]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
CREATE OR REPLACE FUNCTION kll_float_sketch_build_agg(internal, real) RETURNS internal
    AS '$libdir/datasketches', 'pg_kll_float_sketch_build_agg'
    LANGUAGE C IMMUTABLE PARALLEL SAFE;

CREATE OR REPLACE FUNCTION kll_float_sketch_build_agg(internal, real, int) RETURNS internal
    AS '$libdir/datasketches', 'pg_kll_float_sketch_build_agg'
    LANGUAGE C IMMUTABLE PARALLEL SAFE;

CREATE OR REPLACE FUNCTION kll_float_sketch_merge_agg(internal, kll_float_sketch) RETURNS internal
    AS '$libdir/datasketches', 'pg_kll_float_sketch_merge_agg'
    LANGUAGE C IMMUTABLE PARALLEL SAFE;

CREATE OR REPLACE FUNCTION kll_float_sketch_merge_agg(internal, kll_float_sketch, int) RETURNS internal
    AS '$libdir/datasketches', 'pg_kll_float_sketch_merge_agg'
    LANGUAGE C IMMUTABLE PARALLEL SAFE;

CREATE OR REPLACE FUNCTION kll_float_sketch_serialize(internal) RETURNS bytea
    AS '$libdir/datasketches', 'pg_kll_float_sketch_serialize'
    LANGUAGE C STRICT IMMUTABLE PARALLEL SAFE;

CREATE OR REPLACE FUNCTION kll_float_sketch_deserialize(bytea, internal) RETURNS internal
    AS '$libdir/datasketches', 'pg_kll_float_sketch_deserialize'
    LANGUAGE C STRICT IMMUTABLE PARALLEL SAFE;

CREATE OR REPLACE FUNCTION kll_float_sketch_combine(internal, internal) RETURNS internal
    AS '$libdir/datasketches', 'pg_kll_float_sketch_combine'
    LANGUAGE C IMMUTABLE PARALLEL SAFE;

CREATE OR REPLACE FUNCTION kll_float_sketch_finalize(internal) RETURNS kll_float_sketch
    AS '$libdir/datasketches', 'pg_kll_float_sketch_serialize'
    LANGUAGE C STRICT IMMUTABLE PARALLEL SAFE;

CREATE OR REPLACE AGGREGATE kll_float_sketch_build(real) (
    STYPE = internal,
    SFUNC = kll_float_sketch_build_agg,
    COMBINEFUNC = kll_float_sketch_combine,
    SERIALFUNC = kll_float_sketch_serialize,
    DESERIALFUNC = kll_float_sketch_deserialize,
    FINALFUNC = kll_float_sketch_finalize,
    PARALLEL = SAFE
);

CREATE OR REPLACE AGGREGATE kll_float_sketch_build(real, int) (
    STYPE = internal,
    SFUNC = kll_float_sketch_build_agg,
    COMBINEFUNC = kll_float_sketch_combine,
    SERIALFUNC = kll_float_sketch_serialize,
    DESERIALFUNC = kll_float_sketch_deserialize,
    FINALFUNC = kll_float_sketch_finalize,
    PARALLEL = SAFE
);

CREATE OR REPLACE AGGREGATE kll_float_sketch_merge(kll_float_sketch) (
    STYPE = internal,
    SFUNC = kll_float_sketch_merge_agg,
    COMBINEFUNC = kll_float_sketch_combine,
    SERIALFUNC = kll_float_sketch_serialize,
    DESERIALFUNC = kll_float_sketch_deserialize,
    FINALFUNC = kll_float_sketch_finalize,
    PARALLEL = SAFE
);

CREATE OR REPLACE AGGREGATE kll_float_sketch_merge(kll_float_sketch, int) (
    STYPE = internal,
    SFUNC = kll_float_sketch_merge_agg,
    COMBINEFUNC = kll_float_sketch_combine,
    SERIALFUNC = kll_float_sketch_serialize,
    DESERIALFUNC = kll_float_sketch_deserialize,
    FINALFUNC = kll_float_sketch_finalize,
    PARALLEL = SAFE
);

CREATE OR REPLACE FUNCTION kll_float_sketch_get_rank(kll_float_sketch, real) RETURNS double precision
    AS '$libdir/datasketches', 'pg_kll_float_sketch_get_rank'
    LANGUAGE C STRICT IMMUTABLE PARALLEL SAFE;

CREATE OR REPLACE FUNCTION kll_float_sketch_get_quantile(kll_float_sketch, double precision) RETURNS real
    AS '$libdir/datasketches', 'pg_kll_float_sketch_get_quantile'
    LANGUAGE C STRICT IMMUTABLE PARALLEL SAFE;

CREATE OR REPLACE FUNCTION kll_float_sketch_get_n(kll_float_sketch) RETURNS bigint
    AS '$libdir/datasketches', 'pg_kll_float_sketch_get_n'
    LANGUAGE C STRICT IMMUTABLE PARALLEL SAFE;
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



