You signed in with another tab or window.Reload to refresh your session.You signed out in another tab or window.Reload to refresh your session.You switched accounts on another tab or window.Reload to refresh your session.Dismiss alert
WHERE TRUE= ANY (SELECT unnest(execution_time_without_aqo)IS NOT NULL)
123
-
)AS q1
124
-
ORDER BY (nn)ASC;
125
-
END IF;
126
-
END;
127
-
$$ LANGUAGE plpgsql;
123
+
AS'MODULE_PATHNAME','aqo_execution_time'
124
+
LANGUAGE C STRICT VOLATILE;
128
125
COMMENT ON FUNCTION aqo_execution_time(boolean) IS
129
126
'Get execution time of queries. If controlled = true (AQO could advise cardinality estimations), show time of last execution attempt. Another case (AQO not used), return an average value of execution time across all known executions.';
130
127
@@ -152,76 +149,6 @@ LANGUAGE C STRICT VOLATILE;
152
149
COMMENT ON FUNCTION aqo_cleanup() IS
153
150
'Remove unneeded rows from the AQO ML storage';
154
151
155
-
--
156
-
-- Get cardinality error of queries the last time they were executed.
157
-
-- IN:
158
-
-- controlled - show queries executed under a control of AQO (true);
159
-
-- executed without an AQO control, but AQO has a stat on the query (false).
160
-
--
161
-
-- OUT:
162
-
-- num - sequental number. Smaller number corresponds to higher error.
163
-
-- id - ID of a query.
164
-
-- fshash - feature space. Usually equal to zero or ID.
165
-
-- error - AQO error that calculated on plan nodes of the query.
166
-
-- nexecs - number of executions of queries associated with this ID.
167
-
--
168
-
CREATE OR REPLACEFUNCTIONaqo_cardinality_error(controlledboolean)