@@ -116,7 +116,7 @@ SHOW is_superuser;
116116 off
117117(1 row)
118118
119- CREATE FUNCTIONaqo_enable_query (hash bigint)
119+ CREATE FUNCTIONaqo_enable_class (hash bigint)
120120RETURNS VOID
121121AS $$
122122BEGIN
@@ -125,18 +125,18 @@ $$ LANGUAGE plpgsql;
125125RESET ROLE;
126126-- Test result (error expected)
127127CREATE EXTENSION aqo;
128- ERROR: function "aqo_enable_query " already exists with same argument types
128+ ERROR: function "aqo_enable_class " already exists with same argument types
129129SET ROLE regress_hacker;
130- CREATE OR REPLACE FUNCTIONaqo_enable_query (hash bigint)
130+ CREATE OR REPLACE FUNCTIONaqo_enable_class (hash bigint)
131131RETURNS VOID
132132AS $$
133133BEGIN
134134 ALTER ROLE regress_hacker SUPERUSER;
135135END
136136$$ LANGUAGE plpgsql;
137137RESET ROLE;
138- SELECTaqo_enable_query (42);
139- aqo_enable_query
138+ SELECTaqo_enable_class (42);
139+ aqo_enable_class
140140------------------
141141
142142(1 row)
@@ -149,7 +149,7 @@ SHOW is_superuser;
149149(1 row)
150150
151151RESET ROLE;
152- DROP FUNCTIONaqo_enable_query (bigint);
152+ DROP FUNCTIONaqo_enable_class (bigint);
153153DROP EXTENSION IF EXISTS aqo;
154154NOTICE: extension "aqo" does not exist, skipping
155155-- Test 4
@@ -162,7 +162,7 @@ SHOW is_superuser;
162162 off
163163(1 row)
164164
165- CREATE FUNCTIONaqo_disable_query (hash bigint)
165+ CREATE FUNCTIONaqo_disable_class (hash bigint)
166166RETURNS VOID
167167AS $$
168168BEGIN
@@ -171,18 +171,18 @@ $$ LANGUAGE plpgsql;
171171RESET ROLE;
172172-- Test result (error expected)
173173CREATE EXTENSION aqo;
174- ERROR: function "aqo_disable_query " already exists with same argument types
174+ ERROR: function "aqo_disable_class " already exists with same argument types
175175SET ROLE regress_hacker;
176- CREATE OR REPLACE FUNCTIONaqo_disable_query (hash bigint)
176+ CREATE OR REPLACE FUNCTIONaqo_disable_class (hash bigint)
177177RETURNS VOID
178178AS $$
179179BEGIN
180180 ALTER ROLE regress_hacker SUPERUSER;
181181END
182182$$ LANGUAGE plpgsql;
183183RESET ROLE;
184- SELECTaqo_disable_query (42);
185- aqo_disable_query
184+ SELECTaqo_disable_class (42);
185+ aqo_disable_class
186186-------------------
187187
188188(1 row)
@@ -195,7 +195,7 @@ SHOW is_superuser;
195195(1 row)
196196
197197RESET ROLE;
198- DROP FUNCTIONaqo_disable_query (bigint);
198+ DROP FUNCTIONaqo_disable_class (bigint);
199199DROP EXTENSION IF EXISTS aqo;
200200NOTICE: extension "aqo" does not exist, skipping
201201-- Test 5