@@ -30,3 +30,50 @@ AS 'MODULE_PATHNAME', 'aqo_cleanup'
3030LANGUAGE C STRICT VOLATILE;
3131COMMENT ON FUNCTION aqo_cleanup() IS
3232' Remove unneeded rows from the AQO ML storage' ;
33+
34+ --
35+ -- Update or insert an aqo_query_texts
36+ -- table record for given 'queryid'.
37+ --
38+
39+ CREATE FUNCTION aqo_query_texts_update (
40+ queryid bigint , query_text text )
41+ RETURNS bool
42+ AS ' MODULE_PATHNAME' , ' aqo_query_texts_update'
43+ LANGUAGE C VOLATILE;
44+
45+ --
46+ -- Update or insert an aqo_query_stat
47+ -- table record for given 'queryid'.
48+ --
49+
50+ CREATE FUNCTION aqo_query_stat_update (
51+ queryid bigint ,
52+ execution_time_with_aqo double precision [],
53+ execution_time_without_aqo double precision [],
54+ planning_time_with_aqo double precision [],
55+ planning_time_without_aqo double precision [],
56+ cardinality_error_with_aqo double precision [],
57+ cardinality_error_without_aqo double precision [],
58+ executions_with_aqo bigint ,
59+ executions_without_aqo bigint )
60+ RETURNS bool
61+ AS ' MODULE_PATHNAME' , ' aqo_query_stat_update'
62+ LANGUAGE C VOLATILE;
63+
64+ --
65+ -- Update or insert an aqo_data
66+ -- table record for given 'fs' & 'fss'.
67+ --
68+
69+ CREATE FUNCTION aqo_data_update (
70+ fs bigint ,
71+ fss integer ,
72+ nfeatures integer ,
73+ features double precision [][],
74+ targets double precision [],
75+ reliability double precision [],
76+ oids Oid [])
77+ RETURNS bool
78+ AS ' MODULE_PATHNAME' , ' aqo_data_update'
79+ LANGUAGE C VOLATILE;
0 commit comments