@@ -78,13 +78,18 @@ ALTER EXTENSION age
78
78
ALTER EXTENSION age
79
79
DROP OPERATOR ?| (agtype, text []);
80
80
ALTER EXTENSION age
81
- DROP OPERATOR ?& (agtype, agtype[] );
81
+ DROP OPERATOR ?& (agtype, agtype);
82
82
ALTER EXTENSION age
83
- DROP OPERATOR ?& (agtype, text );
83
+ DROP OPERATOR ?& (agtype, text []);
84
+ ALTER EXTENSION age
85
+ DROP OPERATOR @> (agtype, agtype);
86
+ ALTER EXTENSION age
87
+ DROP OPERATOR < @ (agtype, agtype);
84
88
85
89
DROP OPERATOR ? (agtype, agtype), ? (agtype, text ),
86
90
?| (agtype, agtype), ?| (agtype, text []),
87
- ?& (agtype, agtype[]), ?& (agtype, text );
91
+ ?& (agtype, agtype), ?& (agtype, text []),
92
+ @> (agtype, agtype), < @ (agtype, agtype);
88
93
89
94
CREATE OPERATOR ? (
90
95
LEFTARG = agtype,
@@ -134,30 +139,23 @@ CREATE OPERATOR ?& (
134
139
JOIN = matchingjoinsel
135
140
);
136
141
137
- ALTER EXTENSION age
138
- ADD OPERATOR ? (agtype, agtype);
139
- ALTER EXTENSION age
140
- ADD OPERATOR ? (agtype, text );
141
- ALTER EXTENSION age
142
- ADD OPERATOR ?| (agtype, agtype);
143
- ALTER EXTENSION age
144
- ADD OPERATOR ?| (agtype, text []);
145
- ALTER EXTENSION age
146
- ADD OPERATOR ?& (agtype, agtype[]);
147
- ALTER EXTENSION age
148
- ADD OPERATOR ?& (agtype, text );
149
-
150
- ALTER OPERATOR @> (agtype, agtype)
151
- SET (RESTRICT = matchingsel, JOIN = matchingjoinsel);
152
-
153
- ALTER OPERATOR @> (agtype, agtype)
154
- SET (RESTRICT = matchingsel, JOIN = matchingjoinsel);
155
-
156
- ALTER OPERATOR < @ (agtype, agtype)
157
- SET (RESTRICT = matchingsel, JOIN = matchingjoinsel);
142
+ CREATE OPERATOR @> (
143
+ LEFTARG = agtype,
144
+ RIGHTARG = agtype,
145
+ FUNCTION = ag_catalog .agtype_contains ,
146
+ COMMUTATOR = ' <@' ,
147
+ RESTRICT = matchingsel,
148
+ JOIN = matchingjoinsel
149
+ );
158
150
159
- ALTER OPERATOR < @ (agtype, agtype)
160
- SET (RESTRICT = matchingsel, JOIN = matchingjoinsel);
151
+ CREATE OPERATOR < @ (
152
+ LEFTARG = agtype,
153
+ RIGHTARG = agtype,
154
+ FUNCTION = ag_catalog .agtype_contained_by ,
155
+ COMMUTATOR = ' @>' ,
156
+ RESTRICT = matchingsel,
157
+ JOIN = matchingjoinsel
158
+ );
161
159
162
160
/*
163
161
* Since there is no option to add or drop operator from class,
@@ -169,6 +167,7 @@ ALTER EXTENSION age
169
167
DROP OPERATOR CLASS ag_catalog .gin_agtype_ops USING gin;
170
168
171
169
DROP OPERATOR CLASS ag_catalog .gin_agtype_ops USING gin;
170
+ DROP OPERATOR FAMILY ag_catalog .gin_agtype_ops USING gin;
172
171
173
172
CREATE OPERATOR CLASS ag_catalog .gin_agtype_ops
174
173
DEFAULT FOR TYPE agtype USING gin AS
@@ -189,9 +188,6 @@ DEFAULT FOR TYPE agtype USING gin AS
189
188
internal, internal, internal),
190
189
STORAGE text ;
191
190
192
- ALTER EXTENSION age
193
- ADD OPERATOR CLASS ag_catalog .gin_agtype_ops USING gin;
194
-
195
191
-- this function went from variadic "any" to just "any" type
196
192
CREATE OR REPLACE FUNCTION ag_catalog .age_tostring(" any" )
197
193
RETURNS agtype
0 commit comments