Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
525 changes: 525 additions & 0 deletions sql/015-operators-eq.sql

Large diffs are not rendered by default.

210 changes: 0 additions & 210 deletions sql/015-operators-unique.sql

This file was deleted.

27 changes: 26 additions & 1 deletion sql/016-operators-match.sql
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,27 @@ CREATE OPERATOR @>(
);


-- ------------------------------------------------------------------------------------

DROP OPERATOR IF EXISTS @> (cs_match_index_v1, cs_encrypted_v1);
DROP FUNCTION IF EXISTS cs_encrypted_contains_v1(a cs_match_index_v1, b cs_encrypted_v1);

CREATE FUNCTION cs_encrypted_contains_v1(a cs_match_index_v1, b cs_encrypted_v1)
RETURNS boolean AS $$
SELECT a @> cs_match_v1(b);
$$ LANGUAGE SQL;

CREATE OPERATOR @>(
PROCEDURE="cs_encrypted_contains_v1",
LEFTARG=cs_match_index_v1,
RIGHTARG=cs_encrypted_v1,
RESTRICT = eqsel,
JOIN = eqjoinsel,
HASHES,
MERGES
);


-----------------------------------------------------------------------------


DROP OPERATOR IF EXISTS <@ (cs_encrypted_v1, cs_encrypted_v1);
Expand Down Expand Up @@ -103,3 +123,8 @@ CREATE OPERATOR <@ (
HASHES,
MERGES
);


-----------------------------------------------------------------------------------------


Loading