2
2
3
3
-- define the array operators *=, **=, *~ and **~ for type _text
4
4
--
5
- create function array_texteq(_text, text) returns bool
5
+ create or replace function array_texteq(_text, text) returns bool
6
6
as 'MODULE_PATHNAME'
7
7
language 'c';
8
8
9
- create function array_all_texteq(_text, text) returns bool
9
+ create or replace function array_all_texteq(_text, text) returns bool
10
10
as 'MODULE_PATHNAME'
11
11
language 'c';
12
12
13
- create function array_textregexeq(_text, text) returns bool
13
+ create or replace function array_textregexeq(_text, text) returns bool
14
14
as 'MODULE_PATHNAME'
15
15
language 'c';
16
16
17
- create function array_all_textregexeq(_text, text) returns bool
17
+ create or replace function array_all_textregexeq(_text, text) returns bool
18
18
as 'MODULE_PATHNAME'
19
19
language 'c';
20
20
@@ -43,19 +43,19 @@ create operator **~ (
43
43
--
44
44
-- NOTE: "varchar" is also a reserved word and must be quoted.
45
45
--
46
- create function array_varchareq(_varchar, varchar) returns bool
46
+ create or replace function array_varchareq(_varchar, varchar) returns bool
47
47
as 'MODULE_PATHNAME'
48
48
language 'c';
49
49
50
- create function array_all_varchareq(_varchar, varchar) returns bool
50
+ create or replace function array_all_varchareq(_varchar, varchar) returns bool
51
51
as 'MODULE_PATHNAME'
52
52
language 'c';
53
53
54
- create function array_varcharregexeq(_varchar, varchar) returns bool
54
+ create or replace function array_varcharregexeq(_varchar, varchar) returns bool
55
55
as 'MODULE_PATHNAME'
56
56
language 'c';
57
57
58
- create function array_all_varcharregexeq(_varchar, varchar) returns bool
58
+ create or replace function array_all_varcharregexeq(_varchar, varchar) returns bool
59
59
as 'MODULE_PATHNAME'
60
60
language 'c';
61
61
@@ -82,19 +82,19 @@ create operator **~ (
82
82
83
83
-- define the array operators *=, **=, *~ and **~ for type _bpchar
84
84
--
85
- create function array_bpchareq(_bpchar, bpchar) returns bool
85
+ create or replace function array_bpchareq(_bpchar, bpchar) returns bool
86
86
as 'MODULE_PATHNAME'
87
87
language 'c';
88
88
89
- create function array_all_bpchareq(_bpchar, bpchar) returns bool
89
+ create or replace function array_all_bpchareq(_bpchar, bpchar) returns bool
90
90
as 'MODULE_PATHNAME'
91
91
language 'c';
92
92
93
- create function array_bpcharregexeq(_bpchar, bpchar) returns bool
93
+ create or replace function array_bpcharregexeq(_bpchar, bpchar) returns bool
94
94
as 'MODULE_PATHNAME'
95
95
language 'c';
96
96
97
- create function array_all_bpcharregexeq(_bpchar, bpchar) returns bool
97
+ create or replace function array_all_bpcharregexeq(_bpchar, bpchar) returns bool
98
98
as 'MODULE_PATHNAME'
99
99
language 'c';
100
100
@@ -121,51 +121,51 @@ create operator **~ (
121
121
122
122
-- define the array operators *=, **=, *> and **> for type _int4
123
123
--
124
- create function array_int4eq(_int4, int4) returns bool
124
+ create or replace function array_int4eq(_int4, int4) returns bool
125
125
as 'MODULE_PATHNAME'
126
126
language 'c';
127
127
128
- create function array_all_int4eq(_int4, int4) returns bool
128
+ create or replace function array_all_int4eq(_int4, int4) returns bool
129
129
as 'MODULE_PATHNAME'
130
130
language 'c';
131
131
132
- create function array_int4ne(_int4, int4) returns bool
132
+ create or replace function array_int4ne(_int4, int4) returns bool
133
133
as 'MODULE_PATHNAME'
134
134
language 'c';
135
135
136
- create function array_all_int4ne(_int4, int4) returns bool
136
+ create or replace function array_all_int4ne(_int4, int4) returns bool
137
137
as 'MODULE_PATHNAME'
138
138
language 'c';
139
139
140
- create function array_int4gt(_int4, int4) returns bool
140
+ create or replace function array_int4gt(_int4, int4) returns bool
141
141
as 'MODULE_PATHNAME'
142
142
language 'c';
143
143
144
- create function array_all_int4gt(_int4, int4) returns bool
144
+ create or replace function array_all_int4gt(_int4, int4) returns bool
145
145
as 'MODULE_PATHNAME'
146
146
language 'c';
147
147
148
- create function array_int4ge(_int4, int4) returns bool
148
+ create or replace function array_int4ge(_int4, int4) returns bool
149
149
as 'MODULE_PATHNAME'
150
150
language 'c';
151
151
152
- create function array_all_int4ge(_int4, int4) returns bool
152
+ create or replace function array_all_int4ge(_int4, int4) returns bool
153
153
as 'MODULE_PATHNAME'
154
154
language 'c';
155
155
156
- create function array_int4lt(_int4, int4) returns bool
156
+ create or replace function array_int4lt(_int4, int4) returns bool
157
157
as 'MODULE_PATHNAME'
158
158
language 'c';
159
159
160
- create function array_all_int4lt(_int4, int4) returns bool
160
+ create or replace function array_all_int4lt(_int4, int4) returns bool
161
161
as 'MODULE_PATHNAME'
162
162
language 'c';
163
163
164
- create function array_int4le(_int4, int4) returns bool
164
+ create or replace function array_int4le(_int4, int4) returns bool
165
165
as 'MODULE_PATHNAME'
166
166
language 'c';
167
167
168
- create function array_all_int4le(_int4, int4) returns bool
168
+ create or replace function array_all_int4le(_int4, int4) returns bool
169
169
as 'MODULE_PATHNAME'
170
170
language 'c';
171
171
@@ -231,11 +231,11 @@ create operator **<= (
231
231
232
232
-- define the array operators *=, **<> for type _oid (added tobias 1. 1999)
233
233
--
234
- create function array_oideq(_oid, oid) returns bool
234
+ create or replace function array_oideq(_oid, oid) returns bool
235
235
as 'MODULE_PATHNAME'
236
236
language 'c';
237
237
238
- create function array_all_oidne(_oid, oid) returns bool
238
+ create or replace function array_all_oidne(_oid, oid) returns bool
239
239
as 'MODULE_PATHNAME'
240
240
language 'c';
241
241
@@ -249,5 +249,40 @@ create operator **<> (
249
249
rightarg=oid,
250
250
procedure=array_all_oidne);
251
251
252
+ -- define the array operators *=, **=, *<>, **<> for type _inet
252
253
253
- -- end of file
254
+ create or replace function array_ineteq(_inet, inet) returns bool
255
+ as 'MODULE_PATHNAME'
256
+ language 'c';
257
+
258
+ create or replace function array_all_ineteq(_inet, inet) returns bool
259
+ as 'MODULE_PATHNAME'
260
+ language 'c';
261
+
262
+ create or replace function array_inetne(_inet, inet) returns bool
263
+ as 'MODULE_PATHNAME'
264
+ language 'c';
265
+
266
+ create or replace function array_all_inetne(_inet, inet) returns bool
267
+ as 'MODULE_PATHNAME'
268
+ language 'c';
269
+
270
+ create operator *= (
271
+ leftarg=_inet,
272
+ rightarg=inet,
273
+ procedure=array_ineteq);
274
+
275
+ create operator **= (
276
+ leftarg=_inet,
277
+ rightarg=inet,
278
+ procedure=array_all_ineteq);
279
+
280
+ create operator *<> (
281
+ leftarg=_inet,
282
+ rightarg=inet,
283
+ procedure=array_inetne);
284
+
285
+ create operator **<> (
286
+ leftarg=_inet,
287
+ rightarg=inet,
288
+ procedure=array_all_inetne);
0 commit comments