@@ -9,12 +9,24 @@ SELECT regoper('||/');
9
9
||/
10
10
(1 row)
11
11
12
+ SELECT regoperator('+(int4,int4)');
13
+ regoperator
14
+ --------------------
15
+ +(integer,integer)
16
+ (1 row)
17
+
12
18
SELECT regproc('now');
13
19
regproc
14
20
---------
15
21
now
16
22
(1 row)
17
23
24
+ SELECT regprocedure('abs(numeric)');
25
+ regprocedure
26
+ --------------
27
+ abs(numeric)
28
+ (1 row)
29
+
18
30
SELECT regclass('pg_class');
19
31
regclass
20
32
----------
@@ -33,12 +45,24 @@ SELECT to_regoper('||/');
33
45
||/
34
46
(1 row)
35
47
48
+ SELECT to_regoperator('+(int4,int4)');
49
+ to_regoperator
50
+ --------------------
51
+ +(integer,integer)
52
+ (1 row)
53
+
36
54
SELECT to_regproc('now');
37
55
to_regproc
38
56
------------
39
57
now
40
58
(1 row)
41
59
60
+ SELECT to_regprocedure('abs(numeric)');
61
+ to_regprocedure
62
+ -----------------
63
+ abs(numeric)
64
+ (1 row)
65
+
42
66
SELECT to_regclass('pg_class');
43
67
to_regclass
44
68
-------------
@@ -58,12 +82,24 @@ SELECT regoper('pg_catalog.||/');
58
82
||/
59
83
(1 row)
60
84
85
+ SELECT regoperator('pg_catalog.+(int4,int4)');
86
+ regoperator
87
+ --------------------
88
+ +(integer,integer)
89
+ (1 row)
90
+
61
91
SELECT regproc('pg_catalog.now');
62
92
regproc
63
93
---------
64
94
now
65
95
(1 row)
66
96
97
+ SELECT regprocedure('pg_catalog.abs(numeric)');
98
+ regprocedure
99
+ --------------
100
+ abs(numeric)
101
+ (1 row)
102
+
67
103
SELECT regclass('pg_catalog.pg_class');
68
104
regclass
69
105
----------
@@ -88,6 +124,12 @@ SELECT to_regproc('pg_catalog.now');
88
124
now
89
125
(1 row)
90
126
127
+ SELECT to_regprocedure('pg_catalog.abs(numeric)');
128
+ to_regprocedure
129
+ -----------------
130
+ abs(numeric)
131
+ (1 row)
132
+
91
133
SELECT to_regclass('pg_catalog.pg_class');
92
134
to_regclass
93
135
-------------
@@ -106,10 +148,18 @@ SELECT regoper('||//');
106
148
ERROR: operator does not exist: ||//
107
149
LINE 3: SELECT regoper('||//');
108
150
^
151
+ SELECT regoperator('++(int4,int4)');
152
+ ERROR: operator does not exist: ++(int4,int4)
153
+ LINE 1: SELECT regoperator('++(int4,int4)');
154
+ ^
109
155
SELECT regproc('know');
110
156
ERROR: function "know" does not exist
111
157
LINE 1: SELECT regproc('know');
112
158
^
159
+ SELECT regprocedure('absinthe(numeric)');
160
+ ERROR: function "absinthe(numeric)" does not exist
161
+ LINE 1: SELECT regprocedure('absinthe(numeric)');
162
+ ^
113
163
SELECT regclass('pg_classes');
114
164
ERROR: relation "pg_classes" does not exist
115
165
LINE 1: SELECT regclass('pg_classes');
@@ -123,10 +173,18 @@ SELECT regoper('ng_catalog.||/');
123
173
ERROR: schema "ng_catalog" does not exist
124
174
LINE 1: SELECT regoper('ng_catalog.||/');
125
175
^
176
+ SELECT regoperator('ng_catalog.+(int4,int4)');
177
+ ERROR: operator does not exist: ng_catalog.+(int4,int4)
178
+ LINE 1: SELECT regoperator('ng_catalog.+(int4,int4)');
179
+ ^
126
180
SELECT regproc('ng_catalog.now');
127
181
ERROR: schema "ng_catalog" does not exist
128
182
LINE 1: SELECT regproc('ng_catalog.now');
129
183
^
184
+ SELECT regprocedure('ng_catalog.abs(numeric)');
185
+ ERROR: schema "ng_catalog" does not exist
186
+ LINE 1: SELECT regprocedure('ng_catalog.abs(numeric)');
187
+ ^
130
188
SELECT regclass('ng_catalog.pg_class');
131
189
ERROR: schema "ng_catalog" does not exist
132
190
LINE 1: SELECT regclass('ng_catalog.pg_class');
@@ -143,12 +201,24 @@ SELECT to_regoper('||//');
143
201
144
202
(1 row)
145
203
204
+ SELECT to_regoperator('++(int4,int4)');
205
+ to_regoperator
206
+ ----------------
207
+
208
+ (1 row)
209
+
146
210
SELECT to_regproc('know');
147
211
to_regproc
148
212
------------
149
213
150
214
(1 row)
151
215
216
+ SELECT to_regprocedure('absinthe(numeric)');
217
+ to_regprocedure
218
+ -----------------
219
+
220
+ (1 row)
221
+
152
222
SELECT to_regclass('pg_classes');
153
223
to_regclass
154
224
-------------
@@ -168,12 +238,24 @@ SELECT to_regoper('ng_catalog.||/');
168
238
169
239
(1 row)
170
240
241
+ SELECT to_regoperator('ng_catalog.+(int4,int4)');
242
+ to_regoperator
243
+ ----------------
244
+
245
+ (1 row)
246
+
171
247
SELECT to_regproc('ng_catalog.now');
172
248
to_regproc
173
249
------------
174
250
175
251
(1 row)
176
252
253
+ SELECT to_regprocedure('ng_catalog.abs(numeric)');
254
+ to_regprocedure
255
+ -----------------
256
+
257
+ (1 row)
258
+
177
259
SELECT to_regclass('ng_catalog.pg_class');
178
260
to_regclass
179
261
-------------
0 commit comments