sql/datasketches--1.5.0--1.6.0.sql [582:646]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
CREATE OR REPLACE FUNCTION frequent_strings_sketch_build_agg(internal, int, varchar) RETURNS internal
    AS '$libdir/datasketches', 'pg_frequent_strings_sketch_build_agg'
    LANGUAGE C IMMUTABLE PARALLEL SAFE;

CREATE OR REPLACE FUNCTION frequent_strings_sketch_build_agg(internal, int, varchar, bigint) RETURNS internal
    AS '$libdir/datasketches', 'pg_frequent_strings_sketch_build_agg'
    LANGUAGE C IMMUTABLE PARALLEL SAFE;

CREATE OR REPLACE FUNCTION frequent_strings_sketch_merge_agg(internal, int, frequent_strings_sketch) RETURNS internal
    AS '$libdir/datasketches', 'pg_frequent_strings_sketch_merge_agg'
    LANGUAGE C IMMUTABLE PARALLEL SAFE;

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

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

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

CREATE OR REPLACE FUNCTION frequent_strings_sketch_finalize(internal) RETURNS frequent_strings_sketch
    AS '$libdir/datasketches', 'pg_frequent_strings_sketch_serialize'
    LANGUAGE C STRICT IMMUTABLE PARALLEL SAFE;

CREATE OR REPLACE AGGREGATE frequent_strings_sketch_build(int, varchar) (
    STYPE = internal,
    SFUNC = frequent_strings_sketch_build_agg,
    COMBINEFUNC = frequent_strings_sketch_combine,
    SERIALFUNC = frequent_strings_sketch_serialize,
    DESERIALFUNC = frequent_strings_sketch_deserialize, 
    FINALFUNC = frequent_strings_sketch_finalize,
    PARALLEL = SAFE
);

CREATE OR REPLACE AGGREGATE frequent_strings_sketch_build(int, varchar, bigint) (
    STYPE = internal,
    SFUNC = frequent_strings_sketch_build_agg,
    COMBINEFUNC = frequent_strings_sketch_combine,
    SERIALFUNC = frequent_strings_sketch_serialize,
    DESERIALFUNC = frequent_strings_sketch_deserialize, 
    FINALFUNC = frequent_strings_sketch_finalize,
    PARALLEL = SAFE
);

CREATE OR REPLACE AGGREGATE frequent_strings_sketch_merge(int, frequent_strings_sketch) (
    STYPE = internal,
    SFUNC = frequent_strings_sketch_merge_agg,
    COMBINEFUNC = frequent_strings_sketch_combine,
    SERIALFUNC = frequent_strings_sketch_serialize,
    DESERIALFUNC = frequent_strings_sketch_deserialize, 
    FINALFUNC = frequent_strings_sketch_finalize,
    PARALLEL = SAFE
);

CREATE OR REPLACE FUNCTION frequent_strings_sketch_to_string(frequent_strings_sketch) RETURNS TEXT
    AS '$libdir/datasketches', 'pg_frequent_strings_sketch_to_string'
    LANGUAGE C STRICT IMMUTABLE PARALLEL SAFE;

CREATE OR REPLACE FUNCTION frequent_strings_sketch_to_string(frequent_strings_sketch, boolean) RETURNS TEXT
    AS '$libdir/datasketches', 'pg_frequent_strings_sketch_to_string'
    LANGUAGE C STRICT IMMUTABLE PARALLEL SAFE;
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



sql/datasketches_frequent_strings_sketch.sql [37:101]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
CREATE OR REPLACE FUNCTION frequent_strings_sketch_build_agg(internal, int, varchar) RETURNS internal
    AS '$libdir/datasketches', 'pg_frequent_strings_sketch_build_agg'
    LANGUAGE C IMMUTABLE PARALLEL SAFE;

CREATE OR REPLACE FUNCTION frequent_strings_sketch_build_agg(internal, int, varchar, bigint) RETURNS internal
    AS '$libdir/datasketches', 'pg_frequent_strings_sketch_build_agg'
    LANGUAGE C IMMUTABLE PARALLEL SAFE;

CREATE OR REPLACE FUNCTION frequent_strings_sketch_merge_agg(internal, int, frequent_strings_sketch) RETURNS internal
    AS '$libdir/datasketches', 'pg_frequent_strings_sketch_merge_agg'
    LANGUAGE C IMMUTABLE PARALLEL SAFE;

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

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

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

CREATE OR REPLACE FUNCTION frequent_strings_sketch_finalize(internal) RETURNS frequent_strings_sketch
    AS '$libdir/datasketches', 'pg_frequent_strings_sketch_serialize'
    LANGUAGE C STRICT IMMUTABLE PARALLEL SAFE;

CREATE OR REPLACE AGGREGATE frequent_strings_sketch_build(int, varchar) (
    STYPE = internal,
    SFUNC = frequent_strings_sketch_build_agg,
    COMBINEFUNC = frequent_strings_sketch_combine,
    SERIALFUNC = frequent_strings_sketch_serialize,
    DESERIALFUNC = frequent_strings_sketch_deserialize, 
    FINALFUNC = frequent_strings_sketch_finalize,
    PARALLEL = SAFE
);

CREATE OR REPLACE AGGREGATE frequent_strings_sketch_build(int, varchar, bigint) (
    STYPE = internal,
    SFUNC = frequent_strings_sketch_build_agg,
    COMBINEFUNC = frequent_strings_sketch_combine,
    SERIALFUNC = frequent_strings_sketch_serialize,
    DESERIALFUNC = frequent_strings_sketch_deserialize, 
    FINALFUNC = frequent_strings_sketch_finalize,
    PARALLEL = SAFE
);

CREATE OR REPLACE AGGREGATE frequent_strings_sketch_merge(int, frequent_strings_sketch) (
    STYPE = internal,
    SFUNC = frequent_strings_sketch_merge_agg,
    COMBINEFUNC = frequent_strings_sketch_combine,
    SERIALFUNC = frequent_strings_sketch_serialize,
    DESERIALFUNC = frequent_strings_sketch_deserialize, 
    FINALFUNC = frequent_strings_sketch_finalize,
    PARALLEL = SAFE
);

CREATE OR REPLACE FUNCTION frequent_strings_sketch_to_string(frequent_strings_sketch) RETURNS TEXT
    AS '$libdir/datasketches', 'pg_frequent_strings_sketch_to_string'
    LANGUAGE C STRICT IMMUTABLE PARALLEL SAFE;

CREATE OR REPLACE FUNCTION frequent_strings_sketch_to_string(frequent_strings_sketch, boolean) RETURNS TEXT
    AS '$libdir/datasketches', 'pg_frequent_strings_sketch_to_string'
    LANGUAGE C STRICT IMMUTABLE PARALLEL SAFE;
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



