@@ -9,12 +9,24 @@ SELECT regoper('||/');
99 ||/
1010(1 row)
1111
12+ SELECT regoperator('+(int4,int4)');
13+ regoperator
14+ --------------------
15+ +(integer,integer)
16+ (1 row)
17+
1218SELECT regproc('now');
1319 regproc
1420---------
1521 now
1622(1 row)
1723
24+ SELECT regprocedure('abs(numeric)');
25+ regprocedure
26+ --------------
27+ abs(numeric)
28+ (1 row)
29+
1830SELECT regclass('pg_class');
1931 regclass
2032----------
@@ -33,12 +45,24 @@ SELECT to_regoper('||/');
3345 ||/
3446(1 row)
3547
48+ SELECT to_regoperator('+(int4,int4)');
49+ to_regoperator
50+ --------------------
51+ +(integer,integer)
52+ (1 row)
53+
3654SELECT to_regproc('now');
3755 to_regproc
3856------------
3957 now
4058(1 row)
4159
60+ SELECT to_regprocedure('abs(numeric)');
61+ to_regprocedure
62+ -----------------
63+ abs(numeric)
64+ (1 row)
65+
4266SELECT to_regclass('pg_class');
4367 to_regclass
4468-------------
@@ -58,12 +82,24 @@ SELECT regoper('pg_catalog.||/');
5882 ||/
5983(1 row)
6084
85+ SELECT regoperator('pg_catalog.+(int4,int4)');
86+ regoperator
87+ --------------------
88+ +(integer,integer)
89+ (1 row)
90+
6191SELECT regproc('pg_catalog.now');
6292 regproc
6393---------
6494 now
6595(1 row)
6696
97+ SELECT regprocedure('pg_catalog.abs(numeric)');
98+ regprocedure
99+ --------------
100+ abs(numeric)
101+ (1 row)
102+
67103SELECT regclass('pg_catalog.pg_class');
68104 regclass
69105----------
@@ -88,6 +124,12 @@ SELECT to_regproc('pg_catalog.now');
88124 now
89125(1 row)
90126
127+ SELECT to_regprocedure('pg_catalog.abs(numeric)');
128+ to_regprocedure
129+ -----------------
130+ abs(numeric)
131+ (1 row)
132+
91133SELECT to_regclass('pg_catalog.pg_class');
92134 to_regclass
93135-------------
@@ -106,10 +148,18 @@ SELECT regoper('||//');
106148ERROR: operator does not exist: ||//
107149LINE 3: SELECT regoper('||//');
108150 ^
151+ SELECT regoperator('++(int4,int4)');
152+ ERROR: operator does not exist: ++(int4,int4)
153+ LINE 1: SELECT regoperator('++(int4,int4)');
154+ ^
109155SELECT regproc('know');
110156ERROR: function "know" does not exist
111157LINE 1: SELECT regproc('know');
112158 ^
159+ SELECT regprocedure('absinthe(numeric)');
160+ ERROR: function "absinthe(numeric)" does not exist
161+ LINE 1: SELECT regprocedure('absinthe(numeric)');
162+ ^
113163SELECT regclass('pg_classes');
114164ERROR: relation "pg_classes" does not exist
115165LINE 1: SELECT regclass('pg_classes');
@@ -123,10 +173,18 @@ SELECT regoper('ng_catalog.||/');
123173ERROR: schema "ng_catalog" does not exist
124174LINE 1: SELECT regoper('ng_catalog.||/');
125175 ^
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+ ^
126180SELECT regproc('ng_catalog.now');
127181ERROR: schema "ng_catalog" does not exist
128182LINE 1: SELECT regproc('ng_catalog.now');
129183 ^
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+ ^
130188SELECT regclass('ng_catalog.pg_class');
131189ERROR: schema "ng_catalog" does not exist
132190LINE 1: SELECT regclass('ng_catalog.pg_class');
@@ -143,12 +201,24 @@ SELECT to_regoper('||//');
143201
144202(1 row)
145203
204+ SELECT to_regoperator('++(int4,int4)');
205+ to_regoperator
206+ ----------------
207+
208+ (1 row)
209+
146210SELECT to_regproc('know');
147211 to_regproc
148212------------
149213
150214(1 row)
151215
216+ SELECT to_regprocedure('absinthe(numeric)');
217+ to_regprocedure
218+ -----------------
219+
220+ (1 row)
221+
152222SELECT to_regclass('pg_classes');
153223 to_regclass
154224-------------
@@ -168,12 +238,24 @@ SELECT to_regoper('ng_catalog.||/');
168238
169239(1 row)
170240
241+ SELECT to_regoperator('ng_catalog.+(int4,int4)');
242+ to_regoperator
243+ ----------------
244+
245+ (1 row)
246+
171247SELECT to_regproc('ng_catalog.now');
172248 to_regproc
173249------------
174250
175251(1 row)
176252
253+ SELECT to_regprocedure('ng_catalog.abs(numeric)');
254+ to_regprocedure
255+ -----------------
256+
257+ (1 row)
258+
177259SELECT to_regclass('ng_catalog.pg_class');
178260 to_regclass
179261-------------
0 commit comments