@@ -150,7 +150,13 @@ CREATE FUNCTION aqo_reset() RETURNS bigint
150
150
AS ' MODULE_PATHNAME' , ' aqo_reset'
151
151
LANGUAGE C PARALLEL SAFE;
152
152
COMMENT ON FUNCTION aqo_reset() IS
153
- ' Reset all data gathered by AQO' ;
153
+ ' Reset all data gathered by AQO for the current database' ;
154
+
155
+ CREATE FUNCTION aqo_reset (dbid oid ) RETURNS bigint
156
+ AS ' MODULE_PATHNAME' , ' aqo_reset'
157
+ LANGUAGE C PARALLEL SAFE;
158
+ COMMENT ON FUNCTION aqo_reset(oid) IS
159
+ ' Reset all data gathered by AQO for the specified database' ;
154
160
155
161
-- -----------------------------------------------------------------------------
156
162
--
@@ -161,7 +167,6 @@ COMMENT ON FUNCTION aqo_reset() IS
161
167
CREATE FUNCTION aqo_data (
162
168
OUT fs bigint ,
163
169
OUT fss integer ,
164
- OUT db_id Oid ,
165
170
OUT nfeatures integer ,
166
171
OUT features double precision [][],
167
172
OUT targets double precision [],
@@ -174,7 +179,6 @@ LANGUAGE C STRICT VOLATILE PARALLEL SAFE;
174
179
175
180
CREATE FUNCTION aqo_queries (
176
181
OUT queryid bigint ,
177
- OUT db_id Oid ,
178
182
OUT fs bigint ,
179
183
OUT learn_aqo boolean ,
180
184
OUT use_aqo boolean ,
@@ -188,7 +192,6 @@ LANGUAGE C STRICT VOLATILE PARALLEL SAFE;
188
192
189
193
CREATE FUNCTION aqo_query_stat (
190
194
OUT queryid bigint ,
191
- OUT db_id Oid ,
192
195
OUT execution_time_with_aqo double precision [],
193
196
OUT execution_time_without_aqo double precision [],
194
197
OUT planning_time_with_aqo double precision [],
@@ -202,7 +205,7 @@ RETURNS SETOF record
202
205
AS ' MODULE_PATHNAME' , ' aqo_query_stat'
203
206
LANGUAGE C STRICT VOLATILE PARALLEL SAFE;
204
207
205
- CREATE FUNCTION aqo_query_texts (OUT queryid bigint , OUT dbid Oid , OUT query_text text )
208
+ CREATE FUNCTION aqo_query_texts (OUT queryid bigint , OUT query_text text )
206
209
RETURNS SETOF record
207
210
AS ' MODULE_PATHNAME' , ' aqo_query_texts'
208
211
LANGUAGE C STRICT VOLATILE PARALLEL SAFE;
0 commit comments