Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit f742330

Browse files
author
Alena Rybakina
committed
Fix mistakes after review: move changes in the interface due to developing
smart statement timeout feature.
1 parent 147ff71 commit f742330

File tree

3 files changed

+22
-5
lines changed

3 files changed

+22
-5
lines changed

‎aqo--1.3--1.4.sql‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
\echo Use "ALTER EXTENSION aqo UPDATE TO '1.4'" to load this file. \quit
55

66
ALTER TABLE public.aqo_data ADD COLUMN reliability double precision [];
7-
ALTER TABLE public.aqo_queries ADD COLUMN smart_timeout bigint;
8-
ALTER TABLE public.aqo_queries ADD COLUMN count_increase_timeout bigint;
97

108
DROP FUNCTION public.top_error_queries(int);
119

‎aqo--1.4--1.5.sql‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,7 @@ CREATE FUNCTION aqo_queries (
3030
OUT fs bigint,
3131
OUT learn_aqo boolean,
3232
OUT use_aqo boolean,
33-
OUT auto_tuning boolean,
34-
OUT smart_timeout bigint,
35-
OUT count_increase_timeout bigint
33+
OUT auto_tuning boolean
3634
)
3735
RETURNS SETOF record
3836
AS 'MODULE_PATHNAME', 'aqo_queries'

‎aqo--1.5--1.6.sql‎

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,12 @@
33
-- complain if script is sourced in psql, rather than via CREATE EXTENSION
44
\echo Use "ALTER EXTENSION aqo UPDATE TO '1.6'" to load this file. \quit
55

6+
DROP VIEW aqo_queries;
7+
68
DROP FUNCTION aqo_enable_query;
79
DROP FUNCTION aqo_disable_query;
810
DROP FUNCTION aqo_cleanup;
11+
DROP FUNCTION aqo_queries;
912

1013
CREATE FUNCTION aqo_enable_class(queryid bigint)
1114
RETURNS void
@@ -30,3 +33,21 @@ AS 'MODULE_PATHNAME', 'aqo_cleanup'
3033
LANGUAGE C STRICT VOLATILE;
3134
COMMENT ON FUNCTION aqo_cleanup() IS
3235
'Remove unneeded rows from the AQO ML storage';
36+
37+
/*
38+
* VIEWs to discover AQO data.
39+
*/
40+
CREATE FUNCTION aqo_queries (
41+
OUT queryid bigint,
42+
OUT fs bigint,
43+
OUT learn_aqo boolean,
44+
OUT use_aqo boolean,
45+
OUT auto_tuning boolean,
46+
OUT smart_timeout bigint,
47+
OUT count_increase_timeout bigint
48+
)
49+
RETURNS SETOF record
50+
AS 'MODULE_PATHNAME', 'aqo_queries'
51+
LANGUAGE C STRICT VOLATILE PARALLEL SAFE;
52+
53+
CREATE VIEW aqo_queries AS SELECT * FROM aqo_queries();

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /