Skip to content

Instantly share code, notes, and snippets.

@Umnahs
Created May 13, 2020 12:37
Show Gist options
  • Save Umnahs/b648d5ae6a53476fc7efcc471f4f48d3 to your computer and use it in GitHub Desktop.
Save Umnahs/b648d5ae6a53476fc7efcc471f4f48d3 to your computer and use it in GitHub Desktop.
PG Protobufutils Signature Script
\echo USE "CREATE EXTENSION protobufutils" to load this file. \quit
CREATE FUNCTION pbcontains(bytea, bytea) RETURNS boolean
AS '$libdir/protobufutils'
LANGUAGE C IMMUTABLE STRICT;
CREATE FUNCTION pbmerge(bytea, bytea) RETURNS bytea
AS '$libdir/protobufutils'
LANGUAGE C IMMUTABLE STRICT;
CREATE FUNCTION pbiscanonical(bytea) RETURNS boolean
AS '$libdir/protobufutils'
LANGUAGE C IMMUTABLE STRICT;
CREATE FUNCTION pbcanonicalize(bytea) RETURNS bytea
AS '$libdir/protobufutils'
LANGUAGE C IMMUTABLE STRICT;
CREATE FUNCTION pbunpack_int(bytea, integer) RETURNS bigint
AS '$libdir/protobufutils'
LANGUAGE C IMMUTABLE STRICT;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment