Skip to content
Merged
Changes from all 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
54 changes: 25 additions & 29 deletions age--1.5.0--y.y.y.sql
Original file line number Diff line number Diff line change
Expand Up @@ -94,13 +94,18 @@ ALTER EXTENSION age
ALTER EXTENSION age
DROP OPERATOR ?| (agtype, text[]);
ALTER EXTENSION age
DROP OPERATOR ?& (agtype, agtype[]);
DROP OPERATOR ?& (agtype, agtype);
ALTER EXTENSION age
DROP OPERATOR ?& (agtype, text);
DROP OPERATOR ?& (agtype, text[]);
ALTER EXTENSION age
DROP OPERATOR @> (agtype, agtype);
ALTER EXTENSION age
DROP OPERATOR <@ (agtype, agtype);

DROP OPERATOR ? (agtype, agtype), ? (agtype, text),
?| (agtype, agtype), ?| (agtype, text[]),
?& (agtype, agtype[]), ?& (agtype, text);
?& (agtype, agtype), ?& (agtype, text[]),
@> (agtype, agtype), <@ (agtype, agtype);

CREATE OPERATOR ? (
LEFTARG = agtype,
Expand Down Expand Up @@ -150,30 +155,23 @@ CREATE OPERATOR ?& (
JOIN = matchingjoinsel
);

ALTER EXTENSION age
ADD OPERATOR ? (agtype, agtype);
ALTER EXTENSION age
ADD OPERATOR ? (agtype, text);
ALTER EXTENSION age
ADD OPERATOR ?| (agtype, agtype);
ALTER EXTENSION age
ADD OPERATOR ?| (agtype, text[]);
ALTER EXTENSION age
ADD OPERATOR ?& (agtype, agtype[]);
ALTER EXTENSION age
ADD OPERATOR ?& (agtype, text);

ALTER OPERATOR @> (agtype, agtype)
SET (RESTRICT = matchingsel, JOIN = matchingjoinsel);

ALTER OPERATOR @> (agtype, agtype)
SET (RESTRICT = matchingsel, JOIN = matchingjoinsel);

ALTER OPERATOR <@ (agtype, agtype)
SET (RESTRICT = matchingsel, JOIN = matchingjoinsel);
CREATE OPERATOR @> (
LEFTARG = agtype,
RIGHTARG = agtype,
FUNCTION = ag_catalog.agtype_contains,
COMMUTATOR = '<@',
RESTRICT = matchingsel,
JOIN = matchingjoinsel
);

ALTER OPERATOR <@ (agtype, agtype)
SET (RESTRICT = matchingsel, JOIN = matchingjoinsel);
CREATE OPERATOR <@ (
LEFTARG = agtype,
RIGHTARG = agtype,
FUNCTION = ag_catalog.agtype_contained_by,
COMMUTATOR = '@>',
RESTRICT = matchingsel,
JOIN = matchingjoinsel
);

/*
* Since there is no option to add or drop operator from class,
Expand All @@ -185,6 +183,7 @@ ALTER EXTENSION age
DROP OPERATOR CLASS ag_catalog.gin_agtype_ops USING gin;

DROP OPERATOR CLASS ag_catalog.gin_agtype_ops USING gin;
DROP OPERATOR FAMILY ag_catalog.gin_agtype_ops USING gin;

CREATE OPERATOR CLASS ag_catalog.gin_agtype_ops
DEFAULT FOR TYPE agtype USING gin AS
Expand All @@ -205,9 +204,6 @@ DEFAULT FOR TYPE agtype USING gin AS
internal, internal, internal),
STORAGE text;

ALTER EXTENSION age
ADD OPERATOR CLASS ag_catalog.gin_agtype_ops USING gin;

-- this function went from variadic "any" to just "any" type
CREATE OR REPLACE FUNCTION ag_catalog.age_tostring("any")
RETURNS agtype
Expand Down